Always set controller port device descriptors
This commit is contained in:
parent
f62bf91e90
commit
0ced9ca913
15
command.c
15
command.c
|
@ -1015,7 +1015,6 @@ static void command_event_init_controllers(void)
|
||||||
RARCH_LOG("%s %u.\n",
|
RARCH_LOG("%s %u.\n",
|
||||||
msg_hash_to_str(MSG_VALUE_DISCONNECTING_DEVICE_FROM_PORT),
|
msg_hash_to_str(MSG_VALUE_DISCONNECTING_DEVICE_FROM_PORT),
|
||||||
i + 1);
|
i + 1);
|
||||||
set_controller = true;
|
|
||||||
break;
|
break;
|
||||||
case RETRO_DEVICE_JOYPAD:
|
case RETRO_DEVICE_JOYPAD:
|
||||||
break;
|
break;
|
||||||
|
@ -1024,18 +1023,14 @@ static void command_event_init_controllers(void)
|
||||||
* This is broken behavior of course, but avoid breaking
|
* This is broken behavior of course, but avoid breaking
|
||||||
* cores needlessly. */
|
* cores needlessly. */
|
||||||
RARCH_LOG("%s %u: %s (ID: %u).\n",
|
RARCH_LOG("%s %u: %s (ID: %u).\n",
|
||||||
msg_hash_to_str(MSG_CONNECTING_TO_PORT),
|
msg_hash_to_str(MSG_CONNECTING_TO_PORT),
|
||||||
device, ident, i+1);
|
device, ident, i+1);
|
||||||
set_controller = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (set_controller)
|
pad.device = device;
|
||||||
{
|
pad.port = i;
|
||||||
pad.device = device;
|
core_set_controller_port_device(&pad);
|
||||||
pad.port = i;
|
|
||||||
core_set_controller_port_device(&pad);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue