From f8f5a4a108b32f6b2f442ba75ce41c1ca96b3bc0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 17 May 2014 03:56:39 +0200 Subject: [PATCH] (iOS) Fix backwards compatibility with iOS 6 --- apple/common/apple_gamecontroller.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apple/common/apple_gamecontroller.m b/apple/common/apple_gamecontroller.m index 8e9ea19064..96832d8d05 100644 --- a/apple/common/apple_gamecontroller.m +++ b/apple/common/apple_gamecontroller.m @@ -20,6 +20,8 @@ static BOOL apple_gamecontroller_available(void) { + if (IOS_IS_VERSION_6_OR_LOWER()) + return false; /* by checking for extern symbols defined by the framework, we can check for its * existence at runtime. This is the Apple endorsed way of dealing with this */ return (&GCControllerDidConnectNotification && &GCControllerDidDisconnectNotification);