mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-25 12:46:03 +00:00
Merge pull request #8181 from yoshisuga/ios-mfi-detect-fix
iOS: Fix mFi controller connecting
This commit is contained in:
commit
f5343c83eb
@ -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