mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
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:
parent
54c2522979
commit
40d97184b3
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user