(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_LOG("RetroArch started.\n");
|
||||||
rarch_init_msg_queue();
|
rarch_init_msg_queue();
|
||||||
g_android.last_orient = AConfiguration_getOrientation(android_app->config);
|
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");
|
RARCH_LOG("RetroArch stopped.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2769,11 +2769,6 @@ bool rarch_main_iterate(void)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ANDROID
|
|
||||||
if (input_key_pressed_func(RARCH_PAUSE_TOGGLE))
|
|
||||||
return android_run_events(g_android.app);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Time to drop?
|
// Time to drop?
|
||||||
if (input_key_pressed_func(RARCH_QUIT_KEY) ||
|
if (input_key_pressed_func(RARCH_QUIT_KEY) ||
|
||||||
!video_alive_func())
|
!video_alive_func())
|
||||||
|
|
Loading…
Reference in New Issue