mirror of
https://github.com/libretro/RetroArch
synced 2025-01-27 03:35:22 +00:00
fix #5257
This commit is contained in:
parent
af477ff317
commit
7b09cd34db
@ -1291,7 +1291,8 @@ static void command_event_restore_default_shader_preset(void)
|
||||
|
||||
static void command_event_restore_remaps(void)
|
||||
{
|
||||
input_remapping_set_defaults();
|
||||
if (rarch_ctl(RARCH_CTL_IS_REMAPS_GAME_ACTIVE, NULL))
|
||||
input_remapping_set_defaults();
|
||||
}
|
||||
|
||||
static bool command_event_save_auto_state(void)
|
||||
|
@ -213,7 +213,10 @@ void input_remapping_set_defaults(void)
|
||||
}
|
||||
for (j = 0; j < 4; j++)
|
||||
settings->uints.input_remap_ids[i][RARCH_FIRST_CUSTOM_BIND + j] = j;
|
||||
settings->uints.input_analog_dpad_mode[i] = old_analog_dpad_mode[i];
|
||||
settings->uints.input_libretro_device[i] = old_libretro_device[i];
|
||||
|
||||
if (old_analog_dpad_mode[i])
|
||||
settings->uints.input_analog_dpad_mode[i] = old_analog_dpad_mode[i];
|
||||
if (old_libretro_device[i])
|
||||
settings->uints.input_libretro_device[i] = old_libretro_device[i];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user