mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Merge pull request #5446 from fr500/master
only set_controller=true for the number of ports the core supports
This commit is contained in:
commit
23fe08cb4b
@ -1018,10 +1018,10 @@ 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
|
/* ideally these checks shouldn't be required but if we always
|
||||||
* call core_set_controller_port_device input won't work on
|
* call core_set_controller_port_device input won't work on
|
||||||
* cores that don't set port information */
|
* cores that don't set port information properly */
|
||||||
if (info->ports.size != 0)
|
if (info->ports.size != 0 && i < info->ports.size)
|
||||||
set_controller = true;
|
set_controller = true;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user