You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Mac] Set a valid interface number on hid_device_info for USB HID devices
Previously the interface would never be set on Mac.
This presents a big pain because retrieving interface numbers can be the
only way to distinguish between the interfaces returned by HIDAPI.
Mac OS' IOKit library always returns interface number 0 UNLESS the
device is an HID device. If we know we have an HID device, we can safely
forward the interface number onto HIDAPI users.
This change makes it possible to retrieve interface number from an
hid_device_info on Mac for USB HID devices only.
0 commit comments