SDL: Clarify why we're skipping Game Controller framework supported devices in hid.c

From 6de33c09455312c67d8ee808fa2813b1d2a42122 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 3 Jun 2021 09:05:33 -0700
Subject: [PATCH] Clarify why we're skipping Game Controller framework
 supported devices in hid.c

---
 src/hidapi/mac/hid.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/hidapi/mac/hid.c b/src/hidapi/mac/hid.c
index 79bcff89d..26eab235b 100644
--- a/src/hidapi/mac/hid.c
+++ b/src/hidapi/mac/hid.c
@@ -488,12 +488,14 @@ struct hid_device_info  HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
 			continue;
 		}
 
-		#if defined(SDL_JOYSTICK_MFI) && defined(__MACOSX__)
+#if defined(SDL_JOYSTICK_MFI)
+		// We want to prefer Game Controller support where available,
+		// as Apple will likely be requiring that for supported devices.
 		extern SDL_bool IOS_SupportedHIDDevice(IOHIDDeviceRef device);
 		if (IOS_SupportedHIDDevice(dev)) {
 			continue;
 		}
-		#endif
+#endif
 
 		dev_vid = get_vendor_id(dev);
 		dev_pid = get_product_id(dev);