mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +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
|
#endif
|
||||||
return 1;
|
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))
|
else if (g_extern.lifecycle_state & (1ULL << MODE_LOAD_GAME))
|
||||||
{
|
{
|
||||||
load_menu_game_prepare();
|
load_menu_game_prepare();
|
||||||
@ -279,11 +290,7 @@ int main_entry_iterate(signature(), args_type() args)
|
|||||||
g_extern.audio_active = false;
|
g_extern.audio_active = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (menu_input())
|
g_extern.lifecycle_state |= (1ULL << MODE_CLEAR_INPUT);
|
||||||
rarch_input_poll();
|
|
||||||
|
|
||||||
// Restore libretro keyboard callback.
|
|
||||||
g_extern.system.key_event = key_event;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user