macOS support for multiple usage/usage-pages#125
Merged
todbot merged 3 commits intolibusb:masterfrom Dec 5, 2019
todbot:mac-multi-usage2
Merged
macOS support for multiple usage/usage-pages#125todbot merged 3 commits intolibusb:masterfrom todbot:mac-multi-usage2
todbot merged 3 commits intolibusb:masterfrom
todbot:mac-multi-usage2
Conversation
Update of @fengji2006 PR#65, second try
Youw
approved these changes
Dec 3, 2019
Member
|
A small suggestion from my side: |
Contributor
Author
|
Oh apologies. I debated what was the correct approach. Noted for next time. And thanks for being patient with me. |
Member
|
We're a team here :) |
z3ntu
added a commit
to z3ntu/hidapi
that referenced
this pull request
Apr 14, 2020
This reverts commit ca1a2d6. Currently breaks razer_test, see libusb#155
Youw
pushed a commit
that referenced
this pull request
Nov 23, 2020
NOTE: This commit does not handle composite HID descriptors I am interested in adding support for composite descriptors though I still need to find a device with a composite descriptor to test it correctly. The implementation idea is similar, as in #125 for macOS.
Youw
pushed a commit
that referenced
this pull request
Nov 23, 2020
NOTE: This commit does not handle composite HID descriptors I am interested in adding support for composite descriptors though I still need to find a device with a composite descriptor to test it correctly. The implementation idea is similar, as in #125 for macOS.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update of @fengji2006 PR#65, second try.
I think this includes all the requested changes, on top of the work done by @fengj2006 on #65. Unlike the previous attempt, I think this doesn't regress the other recent changes made.
You can now see all the different usages as different "devices" in
hid_enumerate(). When runninghidtestyou see them too. On a Macbook Pro with internal keyboard/trackpad, there are many:Additionally, I've verified that an Arduino "RawHID" device with two usages shows up as two devices to hidapi. The device is a $9 Trinket M0 running TinyUSB pretending to be a Teensy in RawHID mode. See the "tinyusb_teensyrawhid_multiusage" sketch if you'd like to create a similar physical device to test against.