From e687e2bf6d12e26d1f36672a2359324969b5cc4b Mon Sep 17 00:00:00 2001 From: radius Date: Tue, 12 Sep 2017 01:58:21 -0500 Subject: [PATCH] reset controllers when the core has set controller info --- command.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/command.c b/command.c index 499931aa85..d6b4a13b1e 100644 --- a/command.c +++ b/command.c @@ -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.