(Android) Move Android-specific pause functionality outside of

rarch_main_iterate
This commit is contained in:
twinaphex 2012-12-18 03:18:53 +01:00
parent aab39626fe
commit 3570ba80d2
2 changed files with 1 additions and 6 deletions

View File

@ -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");
}

View File

@ -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())