mirror of
https://github.com/libretro/RetroArch
synced 2025-02-12 09:40:06 +00:00
Merge pull request #11196 from sonninnos/device-type-refresh
Refresh bind list on device type change
This commit is contained in:
commit
578e6cc07f
@ -5034,6 +5034,7 @@ static unsigned libretro_device_get_size(unsigned *devices, size_t devices_size,
|
|||||||
static int setting_action_left_libretro_device_type(
|
static int setting_action_left_libretro_device_type(
|
||||||
rarch_setting_t *setting, size_t idx, bool wraparound)
|
rarch_setting_t *setting, size_t idx, bool wraparound)
|
||||||
{
|
{
|
||||||
|
bool refresh = false;
|
||||||
retro_ctx_controller_info_t pad;
|
retro_ctx_controller_info_t pad;
|
||||||
unsigned current_device, current_idx, i, devices[128],
|
unsigned current_device, current_idx, i, devices[128],
|
||||||
types = 0, port = 0;
|
types = 0, port = 0;
|
||||||
@ -5064,6 +5065,8 @@ static int setting_action_left_libretro_device_type(
|
|||||||
|
|
||||||
core_set_controller_port_device(&pad);
|
core_set_controller_port_device(&pad);
|
||||||
|
|
||||||
|
menu_entries_ctl(MENU_ENTRIES_CTL_SET_REFRESH, &refresh);
|
||||||
|
menu_driver_ctl(RARCH_MENU_CTL_SET_PREVENT_POPULATE, NULL);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6580,6 +6583,7 @@ static int setting_action_right_analog_dpad_mode(
|
|||||||
static int setting_action_right_libretro_device_type(
|
static int setting_action_right_libretro_device_type(
|
||||||
rarch_setting_t *setting, size_t idx, bool wraparound)
|
rarch_setting_t *setting, size_t idx, bool wraparound)
|
||||||
{
|
{
|
||||||
|
bool refresh = false;
|
||||||
retro_ctx_controller_info_t pad;
|
retro_ctx_controller_info_t pad;
|
||||||
unsigned current_device, current_idx, i, devices[128],
|
unsigned current_device, current_idx, i, devices[128],
|
||||||
types = 0, port = 0;
|
types = 0, port = 0;
|
||||||
@ -6610,6 +6614,8 @@ static int setting_action_right_libretro_device_type(
|
|||||||
|
|
||||||
core_set_controller_port_device(&pad);
|
core_set_controller_port_device(&pad);
|
||||||
|
|
||||||
|
menu_entries_ctl(MENU_ENTRIES_CTL_SET_REFRESH, &refresh);
|
||||||
|
menu_driver_ctl(RARCH_MENU_CTL_SET_PREVENT_POPULATE, NULL);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user