-
Notifications
You must be signed in to change notification settings - Fork 231
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
Getting device capabilities #102
Comments
Using a third party app I was able to get a full report from the same device. I can see the same problem in this data........... WTF!
|
Solved one issue.... for some unknown reason the left trigger and the right trigger are combined to give the Z value. This is just madness, but what the hell. |
Yeah, I have no idea, I haven't touched HID in over a decade so wont be much help. :( |
No problem, I will hack it apart and figure out what is going on. |
Hi Mike,
Been doing some more work as I am trying to work out what buttons / switches are available on a device and automatically build a mapping table for the incoming bit stream.
So far I have extended your code to include Hidp_GetValueCaps and Hidp_GetButtonCaps. I have also added a few methods to your extension class to map from usage to something readable,
I modified the test harness to display this data, and I am totally and utterly confused.
Using a standard Xbox controller as a test subject I can see that the device has 6 value caps and one button cap. The button cap contains 9 buttons, which is correct.
The value caps contain everything EXCEPT the left rigger.
`Usage GENERIC
Value caps 6
UsagePage GENERIC Usage Y Size 16 IsRange False
UsagePage GENERIC Usage X Size 16 IsRange False
UsagePage GENERIC Usage RY Size 16 IsRange False
UsagePage GENERIC Usage RX Size 16 IsRange False
UsagePage GENERIC Usage Z Size 16 IsRange False
UsagePage GENERIC Usage HATSWITCH Size 4 IsRange False
Button caps 1
UsagePage BUTTON Min 5 Max 14`
I can see the device has 16 data indices ... so I am missing one..... but where?
a) Have you any ideas
b) Do you want me to send you a code drop when I get closer?
The text was updated successfully, but these errors were encountered: