-
Notifications
You must be signed in to change notification settings - Fork 19
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
PS3 controller multiple axis with same usage reports wrong value #15
Comments
Been a while since I had a look at that code but if I had to take a guess it probably does a look-up for the Slider and take the first one it finds, not expecting you can have multiple of them. It could be tricky to fix too. Can you not reassign one of the Sliders to another axis somehow? Do you mind me asking what kind of device is that? |
I'm interfacing with some gamepads and gamepad adapters. |
I'm just now starting to understand that issue. I don't have a PS3 controller but I do have a PS4 controller so I guess I'll try to reproduce it with that one. Thanks again for taking the time to report it. The thing is I don't think I'm myself using that DataIndex to fetch the values. It's done in I can't reproduce the issue with the PS4 controller cause it does not have multiple axis with the same usage… |
And I can reproduce the issue in HID Demo. I'll try to debug that later today. |
The issue it seems is indeed due to Basically to support that we should use |
We should switch to Microsoft.Windows.CsWin32 to gain access to |
Except that our ReportCount is not above one so that array function might not be what we need here. I'm still missing a piece of the puzzle. I'm guessing I still need to experiment with |
Nice! Thanks for taking a shot at it. The PS3 controller have some unique features... It's buttons are "pressure sensitive"! |
As feared using |
@sonik-br Could you build and run the latest HID Demo? I'm just curious to see what kind of friendly name your PS3 controller is now reporting. Hopefully I did not break anything. |
I could try to use API Monitor see how Joy.cpl gets the axis value. Though I reckon it's using the DirectInput API rather than the HID API. |
Tested it with the current code from repo. I can try to see how UCR work and use SharpDX. BTW got it "working" with IntergatedCircuits/HidSharp |
In the HID Demo, is it still displaying |
Thanks, still the wrong one though. Interesting that the control panel get it correct. |
Control Panel gets the info from windows register I think. |
Hi.
I'm interfacing with a game controller and it have two "Slider" axis.
The report is correct on windows (joy.cpl)
In the HID Demo one of the sliders report is duplicate on the other. The second one don't generate any report.
The descriptor: (I added the "DataIndex" property on the list).
And the event log.
Here it's possible to see that the Sliders both are sharing the same values.
I try to debug but could not find the problem. Looks like it ignores the DataIndex if the axis is duplicate?
If you can at least point me in the right direction so I can try to fix.
Thanks.
The text was updated successfully, but these errors were encountered: