mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
(Android) Move Android-specific pause functionality outside of
rarch_main_iterate
This commit is contained in:
parent
aab39626fe
commit
3570ba80d2
@ -443,7 +443,7 @@ static void* android_app_entry(void* param)
|
||||
RARCH_LOG("RetroArch started.\n");
|
||||
rarch_init_msg_queue();
|
||||
g_android.last_orient = AConfiguration_getOrientation(android_app->config);
|
||||
while(rarch_main_iterate());
|
||||
while((input_key_pressed_func(RARCH_PAUSE_TOGGLE)) ? android_run_events(g_android.app) : rarch_main_iterate());
|
||||
RARCH_LOG("RetroArch stopped.\n");
|
||||
}
|
||||
|
||||
|
@ -2769,11 +2769,6 @@ bool rarch_main_iterate(void)
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef ANDROID
|
||||
if (input_key_pressed_func(RARCH_PAUSE_TOGGLE))
|
||||
return android_run_events(g_android.app);
|
||||
#endif
|
||||
|
||||
// Time to drop?
|
||||
if (input_key_pressed_func(RARCH_QUIT_KEY) ||
|
||||
!video_alive_func())
|
||||
|
Loading…
x
Reference in New Issue
Block a user