Fix edge case where if core was paused before entering menu

and we try to leave the menu again, it will get stuck on a pause
screen until you toggle the menu again. Now the 'flush input'
routine will automatically evoke the pause toggle to get it
'unstuck'.
This commit is contained in:
twinaphex 2014-10-05 05:26:35 +02:00
parent 54c2522979
commit 40d97184b3

View File

@ -703,7 +703,15 @@ int rarch_main_iterate(void)
if (driver.flushing_input)
{
if (input)
{
input = 0;
/* If core was paused before
* entering menu, evoke
* pause toggle to wake it up.
*/
if (g_extern.is_paused)
input |= (1ULL << RARCH_PAUSE_TOGGLE);
}
else
driver.flushing_input = false;
}