(iOS) Fix backwards compatibility with iOS 6

This commit is contained in:
twinaphex 2014-05-17 03:56:39 +02:00
parent 72beeba8b0
commit f8f5a4a108

View File

@ -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);