-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HID Usage is property of a HID top-level-collection, not of a HID device #453
Comments
Sure, that is true. I'd say, to make it "right" - is something we should consider for V1. |
Just a minor thing, you change the title of this issue to "a HID" from "an HID", but actually I think it is more correct to use "an HID". |
So the question here is what is the correct pronounce of a HID - is it 'an (aitch i di)', or as a single word - 'a (hid)'. |
I see, I always pronouce it as H-I-D, but I am not a native English speaker either... |
Got some interesting argument from my colleague: |
Or, we could just introduce a separate structure called something in the lines of The structure would be basically a copy of Might interfere with the current hotplug implementation, though. On Windows each of them gets a separate event and there isn't much we can do. UPD: I could make a simplified implementation if it sounds like a good idea to you. |
If you imply having a single "virtual" device on HIDAPI level that would agregate all top level collections as reported by WinAPI - I'm against that idea. I'd be happier to see a hid_device_info with a list of available collections (usaga/usage_page pairs) where on most systems there would be a list of available pairs, and on Windows there would be multiple devices with a list contain a single element. I'm more into having as simpler wrapper/implementation over what OS provides as possible. |
The HID standard doesn't define a Usage for an whole HID device. These property belongs to a top level collection.
From USB HID spec 1.11 page 34:
The text was updated successfully, but these errors were encountered: