mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Have HIDAPI skip MFI supported HID devices on macOS to avoid duplicate devices.
This commit is contained in:
parent
2af3f64ecf
commit
28da6c5ddb
@ -488,6 +488,13 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(SDL_JOYSTICK_MFI) && defined(__MACOSX__)
|
||||||
|
extern SDL_bool IOS_SupportedHIDDevice(IOHIDDeviceRef device);
|
||||||
|
if (IOS_SupportedHIDDevice(dev)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
dev_vid = get_vendor_id(dev);
|
dev_vid = get_vendor_id(dev);
|
||||||
dev_pid = get_product_id(dev);
|
dev_pid = get_product_id(dev);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user