mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Simplify apple_gamecontroller_available
This commit is contained in:
parent
062075dfb5
commit
54ad123b06
@ -30,16 +30,11 @@ static bool apple_gamecontroller_available(void)
|
|||||||
{
|
{
|
||||||
int major, minor;
|
int major, minor;
|
||||||
get_ios_version(&major, &minor);
|
get_ios_version(&major, &minor);
|
||||||
|
|
||||||
if (major <= 6)
|
if (major <= 6)
|
||||||
return false;
|
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 true;
|
||||||
#ifdef __IPHONE_7_0
|
|
||||||
return (&GCControllerDidConnectNotification && &GCControllerDidDisconnectNotification);
|
|
||||||
#else
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void apple_gamecontroller_poll(GCController *controller)
|
static void apple_gamecontroller_poll(GCController *controller)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user