mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 10:20:41 +00:00
reset controllers when the core has set controller info
This commit is contained in:
parent
049d69f9cc
commit
e687e2bf6d
@ -1018,6 +1018,11 @@ static void command_event_init_controllers(void)
|
|||||||
set_controller = true;
|
set_controller = true;
|
||||||
break;
|
break;
|
||||||
case RETRO_DEVICE_JOYPAD:
|
case RETRO_DEVICE_JOYPAD:
|
||||||
|
/* ideally this check wouldn't be required but if we always
|
||||||
|
* call core_set_controller_port_device input won't work on
|
||||||
|
* cores that don't set port information */
|
||||||
|
if (info->ports.size != 0)
|
||||||
|
set_controller = true;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* Some cores do not properly range check port argument.
|
/* Some cores do not properly range check port argument.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user