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

This commit is contained in:
Sam Lantinga 2021-06-03 09:05:33 -07:00
parent 28da6c5ddb
commit 6de33c0945
1 changed files with 4 additions and 2 deletions

View File

@ -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);