From c2a78e86d101c3e7fc91046059ef992620f1e896 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 4 Mar 2013 16:15:58 +0100 Subject: [PATCH] (Android) Check explicitly for either LOOPER_ID_INPUT or LOOPER_ID_MAIN in anroid_input_poll --- android/native/jni/input_android.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/native/jni/input_android.c b/android/native/jni/input_android.c index c8882747f9..5e30de86f4 100644 --- a/android/native/jni/input_android.c +++ b/android/native/jni/input_android.c @@ -294,9 +294,7 @@ static void android_input_poll(void *data) while ((ident = ALooper_pollAll((input_key_pressed_func(RARCH_PAUSE_TOGGLE)) ? -1 : 0, NULL, NULL, NULL)) >= 0) { - if (ident == LOOPER_ID_MAIN) - engine_handle_cmd(); - else if (!input_key_pressed_func(RARCH_PAUSE_TOGGLE)) + if (ident == LOOPER_ID_INPUT) { bool debug_enable = g_settings.input.debug_enable; struct android_app *android_app = (struct android_app*)g_android; @@ -460,6 +458,8 @@ static void android_input_poll(void *data) } } } + else if (ident == LOOPER_ID_MAIN) + engine_handle_cmd(); } }