mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
Update rarch_main_set_pause references
This commit is contained in:
parent
e3e1a5a35c
commit
aed0cb8d21
@ -361,9 +361,9 @@ static void engine_handle_cmd(void)
|
|||||||
{
|
{
|
||||||
bool boolean = true;
|
bool boolean = true;
|
||||||
RARCH_LOG("Pausing RetroArch.\n");
|
RARCH_LOG("Pausing RetroArch.\n");
|
||||||
rarch_main_set_pause(true);
|
|
||||||
|
|
||||||
rarch_main_ctl(RARCH_MAIN_CTL_SET_IDLE, &boolean);
|
rarch_main_ctl(RARCH_MAIN_CTL_SET_PAUSED, &boolean);
|
||||||
|
rarch_main_ctl(RARCH_MAIN_CTL_SET_IDLE, &boolean);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -395,8 +395,8 @@ static void engine_handle_cmd(void)
|
|||||||
{
|
{
|
||||||
bool boolean = false;
|
bool boolean = false;
|
||||||
|
|
||||||
rarch_main_set_pause(false);
|
rarch_main_ctl(RARCH_MAIN_CTL_SET_PAUSED, &boolean);
|
||||||
rarch_main_ctl(RARCH_MAIN_CTL_SET_IDLE, &boolean);
|
rarch_main_ctl(RARCH_MAIN_CTL_SET_IDLE, &boolean);
|
||||||
|
|
||||||
if ((android_app->sensor_state_mask
|
if ((android_app->sensor_state_mask
|
||||||
& (UINT64_C(1) << RETRO_SENSOR_ACCELEROMETER_ENABLE))
|
& (UINT64_C(1) << RETRO_SENSOR_ACCELEROMETER_ENABLE))
|
||||||
|
@ -48,9 +48,9 @@ static void rarch_enable_ui(void)
|
|||||||
bool boolean = true;
|
bool boolean = true;
|
||||||
|
|
||||||
ui_companion_set_foreground(true);
|
ui_companion_set_foreground(true);
|
||||||
rarch_main_set_pause(true);
|
|
||||||
|
|
||||||
rarch_main_ctl(RARCH_MAIN_CTL_SET_IDLE, &boolean);
|
rarch_main_ctl(RARCH_MAIN_CTL_SET_PAUSED, &boolean);
|
||||||
|
rarch_main_ctl(RARCH_MAIN_CTL_SET_IDLE, &boolean);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rarch_disable_ui(void)
|
static void rarch_disable_ui(void)
|
||||||
@ -58,9 +58,9 @@ static void rarch_disable_ui(void)
|
|||||||
bool boolean = false;
|
bool boolean = false;
|
||||||
|
|
||||||
ui_companion_set_foreground(false);
|
ui_companion_set_foreground(false);
|
||||||
rarch_main_set_pause(false);
|
|
||||||
|
|
||||||
rarch_main_ctl(RARCH_MAIN_CTL_SET_IDLE, &boolean);
|
rarch_main_ctl(RARCH_MAIN_CTL_SET_PAUSED, &boolean);
|
||||||
|
rarch_main_ctl(RARCH_MAIN_CTL_SET_IDLE, &boolean);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rarch_draw_observer(CFRunLoopObserverRef observer,
|
static void rarch_draw_observer(CFRunLoopObserverRef observer,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user