mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Reimplement menu clear input courtesy of meancoot
This commit is contained in:
parent
ac550dc1dc
commit
9d6a0afd4a
@ -191,6 +191,17 @@ int main_entry_iterate(signature(), args_type() args)
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
else if (g_extern.lifecycle_state & (1ULL << MODE_CLEAR_INPUT))
|
||||
{
|
||||
rarch_input_poll();
|
||||
if (!menu_input())
|
||||
{
|
||||
// Restore libretro keyboard callback.
|
||||
g_extern.system.key_event = key_event;
|
||||
|
||||
g_extern.lifecycle_state &= ~(1ULL << MODE_CLEAR_INPUT);
|
||||
}
|
||||
}
|
||||
else if (g_extern.lifecycle_state & (1ULL << MODE_LOAD_GAME))
|
||||
{
|
||||
load_menu_game_prepare();
|
||||
@ -279,11 +290,7 @@ int main_entry_iterate(signature(), args_type() args)
|
||||
g_extern.audio_active = false;
|
||||
}
|
||||
|
||||
while (menu_input())
|
||||
rarch_input_poll();
|
||||
|
||||
// Restore libretro keyboard callback.
|
||||
g_extern.system.key_event = key_event;
|
||||
g_extern.lifecycle_state |= (1ULL << MODE_CLEAR_INPUT);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user