-
Notifications
You must be signed in to change notification settings - Fork 904
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mac] Set a valid interface number on hid_device_info for USB HID dev…
…ices 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.
- Loading branch information
1 parent
a6a622f
commit d483207
Showing
2 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters