SDL: Revert "Android: also protect Hat/Joy/PadDown,Up so there are not sent without window"

From 8b86e3073d2f03b11d1a17ddffca983b4cf31bba Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Thu, 22 Jun 2023 23:30:41 +0200
Subject: [PATCH] Revert "Android: also protect Hat/Joy/PadDown,Up so there are
 not sent without window"

This reverts commit 8f83ccd750fbee5af3433f30438a9beb500dc6d2.
---
 src/core/android/SDL_android.c | 40 ++++------------------------------
 1 file changed, 4 insertions(+), 36 deletions(-)

diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c
index 67dd335b9ab6..1d3909b6938f 100644
--- a/src/core/android/SDL_android.c
+++ b/src/core/android/SDL_android.c
@@ -1032,17 +1032,7 @@ JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(onNativePadDown)(
     JNIEnv *env, jclass jcls,
     jint device_id, jint keycode)
 {
-    int ret = -1;
-
-    SDL_LockMutex(Android_ActivityMutex);
-
-    if (Android_Window) {
-        ret = Android_OnPadDown(device_id, keycode);
-    }
-
-    SDL_UnlockMutex(Android_ActivityMutex);
-
-    return ret;
+    return Android_OnPadDown(device_id, keycode);
 }
 
 /* Padup */
@@ -1050,17 +1040,7 @@ JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(onNativePadUp)(
     JNIEnv *env, jclass jcls,
     jint device_id, jint keycode)
 {
-    int ret = -1;
-
-    SDL_LockMutex(Android_ActivityMutex);
-
-    if (Android_Window) {
-        ret = Android_OnPadUp(device_id, keycode);
-    }
-
-    SDL_UnlockMutex(Android_ActivityMutex);
-
-    return ret;
+    return Android_OnPadUp(device_id, keycode);
 }
 
 /* Joy */
@@ -1068,13 +1048,7 @@ JNIEXPORT void JNICALL SDL_JAVA_CONTROLLER_INTERFACE(onNativeJoy)(
     JNIEnv *env, jclass jcls,
     jint device_id, jint axis, jfloat value)
 {
-    SDL_LockMutex(Android_ActivityMutex);
-
-    if (Android_Window) {
-        Android_OnJoy(device_id, axis, value);
-    }
-
-    SDL_UnlockMutex(Android_ActivityMutex);
+    Android_OnJoy(device_id, axis, value);
 }
 
 /* POV Hat */
@@ -1082,13 +1056,7 @@ JNIEXPORT void JNICALL SDL_JAVA_CONTROLLER_INTERFACE(onNativeHat)(
     JNIEnv *env, jclass jcls,
     jint device_id, jint hat_id, jint x, jint y)
 {
-    SDL_LockMutex(Android_ActivityMutex);
-
-    if (Android_Window) {
-        Android_OnHat(device_id, hat_id, x, y);
-    }
-
-    SDL_UnlockMutex(Android_ActivityMutex);
+    Android_OnHat(device_id, hat_id, x, y);
 }
 
 JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeAddJoystick)(