Commit c3ca3445bd43292f5f35058d86a64782ad03a286

Sam Lantinga 2022-03-08T18:56:49

Prefer HIDAPI on macOS, as that has extended functionality

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/hidapi/mac/hid.c b/src/hidapi/mac/hid.c
index 19314a6..6e70285 100644
--- a/src/hidapi/mac/hid.c
+++ b/src/hidapi/mac/hid.c
@@ -557,6 +557,7 @@ struct hid_device_info  HID_API_EXPORT *hid_enumerate(unsigned short vendor_id, 
 			continue;
 		}
 
+#if 0 // Prefer direct HID support as that has extended functionality
 #if defined(SDL_JOYSTICK_MFI)
 		// We want to prefer Game Controller support where available,
 		// as Apple will likely be requiring that for supported devices.
@@ -565,6 +566,7 @@ struct hid_device_info  HID_API_EXPORT *hid_enumerate(unsigned short vendor_id, 
 			continue;
 		}
 #endif
+#endif
 
 		dev_vid = get_vendor_id(dev);
 		dev_pid = get_product_id(dev);