瀏覽代碼

Prefer HIDAPI on macOS, as that has extended functionality

Sam Lantinga 3 年之前
父節點
當前提交
c3ca3445bd
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/hidapi/mac/hid.c

+ 2 - 0
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.
@@ -564,6 +565,7 @@ struct hid_device_info  HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
 		if (IOS_SupportedHIDDevice(dev)) {
 			continue;
 		}
+#endif
 #endif
 
 		dev_vid = get_vendor_id(dev);