Simplify apple_gamecontroller_available

This commit is contained in:
twinaphex 2015-09-16 02:50:22 +02:00
parent 062075dfb5
commit 54ad123b06

View File

@ -33,13 +33,8 @@ static bool apple_gamecontroller_available(void)
if (major <= 6)
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 */
#ifdef __IPHONE_7_0
return (&GCControllerDidConnectNotification && &GCControllerDidDisconnectNotification);
#else
return false;
#endif
return true;
}
static void apple_gamecontroller_poll(GCController *controller)