From 54ad123b06594964c8a9e3fd6fc156d9b4c0c985 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 16 Sep 2015 02:50:22 +0200 Subject: [PATCH] Simplify apple_gamecontroller_available --- input/drivers_hid/mfi_hid.m | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/input/drivers_hid/mfi_hid.m b/input/drivers_hid/mfi_hid.m index de4cecc563..3dd7cef91f 100644 --- a/input/drivers_hid/mfi_hid.m +++ b/input/drivers_hid/mfi_hid.m @@ -30,16 +30,11 @@ static bool apple_gamecontroller_available(void) { int major, minor; get_ios_version(&major, &minor); - + 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)