mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Start implementing g_extern.lifecycle_state as a way to pass
commands to Rarch internally on next iteration
This commit is contained in:
parent
2df870f7d0
commit
44b771813a
11
runloop.c
11
runloop.c
@ -654,6 +654,17 @@ int rarch_main_iterate(void)
|
||||
if (driver.flushing_input)
|
||||
driver.flushing_input = (input) ? input_flush(&input) : false;
|
||||
|
||||
if (g_extern.lifecycle_state != 0)
|
||||
{
|
||||
int key;
|
||||
for (key = 0; key < RARCH_BIND_LIST_END; key++)
|
||||
{
|
||||
if (BIT64_GET(g_extern.lifecycle_state, key))
|
||||
BIT64_SET(input, key);
|
||||
}
|
||||
g_extern.lifecycle_state = 0;
|
||||
}
|
||||
|
||||
trigger_input = input & ~old_input;
|
||||
|
||||
if (time_to_exit(input))
|
||||
|
Loading…
x
Reference in New Issue
Block a user