mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 09:32:58 +00:00
Revert "Always set controller port device descriptors"
This reverts commit 0ced9ca9131d41e3a1eb849fd4e43052f85d2b6a.
This commit is contained in:
parent
278d171483
commit
b1b09837af
@ -1015,6 +1015,7 @@ static void command_event_init_controllers(void)
|
||||
RARCH_LOG("%s %u.\n",
|
||||
msg_hash_to_str(MSG_VALUE_DISCONNECTING_DEVICE_FROM_PORT),
|
||||
i + 1);
|
||||
set_controller = true;
|
||||
break;
|
||||
case RETRO_DEVICE_JOYPAD:
|
||||
break;
|
||||
@ -1025,14 +1026,18 @@ static void command_event_init_controllers(void)
|
||||
RARCH_LOG("%s %u: %s (ID: %u).\n",
|
||||
msg_hash_to_str(MSG_CONNECTING_TO_PORT),
|
||||
device, ident, i+1);
|
||||
set_controller = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (set_controller)
|
||||
{
|
||||
pad.device = device;
|
||||
pad.port = i;
|
||||
core_set_controller_port_device(&pad);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void command_event_deinit_core(bool reinit)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user