Merge pull request #8181 from yoshisuga/ios-mfi-detect-fix

iOS: Fix mFi controller connecting
This commit is contained in:
Twinaphex 2019-02-05 19:15:03 +01:00 committed by GitHub
commit f5343c83eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */