mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Stop rumbling effects when entering RGUI.
This commit is contained in:
parent
0314a57577
commit
914dc969c8
@ -217,6 +217,12 @@ int main_entry(int argc, char *argv[])
|
|||||||
g_extern.lifecycle_mode_state |= 1ULL << MODE_MENU_PREINIT;
|
g_extern.lifecycle_mode_state |= 1ULL << MODE_MENU_PREINIT;
|
||||||
// Menu should always run with vsync on.
|
// Menu should always run with vsync on.
|
||||||
video_set_nonblock_state_func(false);
|
video_set_nonblock_state_func(false);
|
||||||
|
// Stop all rumbling when entering RGUI.
|
||||||
|
for (unsigned i = 0; i < MAX_PLAYERS; i++)
|
||||||
|
{
|
||||||
|
driver_set_rumble_state(i, RETRO_RUMBLE_STRONG, 0);
|
||||||
|
driver_set_rumble_state(i, RETRO_RUMBLE_WEAK, 0);
|
||||||
|
}
|
||||||
|
|
||||||
if (driver.audio_data)
|
if (driver.audio_data)
|
||||||
audio_stop_func();
|
audio_stop_func();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user