mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
iOS: check if mfi controller already added to the internal list when connecting
This commit is contained in:
parent
55b449d743
commit
b06d75ec99
@ -182,6 +182,9 @@ static void apple_gamecontroller_joypad_connect(GCController *controller)
|
||||
? desired_index : 0;
|
||||
|
||||
/* prevent same controller getting set twice */
|
||||
if ( [mfiControllers containsObject:controller] ) {
|
||||
return;
|
||||
}
|
||||
if (mfi_controllers[desired_index] != (uint32_t)controller.hash)
|
||||
{
|
||||
/* desired slot is unused, take it */
|
||||
|
Loading…
x
Reference in New Issue
Block a user