mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-21 02:08:16 +00:00
Simplify apple_gamecontroller_available
This commit is contained in:
parent
062075dfb5
commit
54ad123b06
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user