Merge pull request #5435 from fr500/staging

reset controllers when the core has set controller info
This commit is contained in:
Twinaphex 2017-09-12 23:10:57 +02:00 committed by GitHub
commit 5c7b288873

View File

@ -1018,6 +1018,11 @@ static void command_event_init_controllers(void)
set_controller = true;
break;
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;
default:
/* Some cores do not properly range check port argument.