mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 09:35:21 +00:00
(Android) Check explicitly for either LOOPER_ID_INPUT or LOOPER_ID_MAIN
in anroid_input_poll
This commit is contained in:
parent
2e68c61ea6
commit
c2a78e86d1
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user