mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 03:39:59 +00:00
Backport d5e2d42008
This commit is contained in:
parent
ae662b4fe2
commit
98b594666f
@ -14507,7 +14507,10 @@ static void command_event_init_controllers(struct rarch_state *p_rarch)
|
||||
const char *ident = NULL;
|
||||
bool set_controller = false;
|
||||
const struct retro_controller_description *desc = NULL;
|
||||
unsigned device = input_config_get_device(i);
|
||||
unsigned max_users = p_rarch->input_driver_max_users;
|
||||
unsigned device = (i < max_users)
|
||||
? input_config_get_device(i)
|
||||
: RETRO_DEVICE_NONE;
|
||||
|
||||
if (info)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user