-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
D-pad not detected under Linux #241
Comments
I should note I am using the presets from the 5.0.0rc1 release. Is there any way to check what |
Maybe the issue is here? For me, the d-pad for my Series X controller shows up as axes 6 and 7, but there's no entry addressing axes 6 and 7. Is there a |
output of
cfb4b5b |
Problem is it's looking for four buttons, not two axes. D-pad for Series X uses 2 axes labeled 6 and 7, so Dpad left registers as "6", but so does Dpad right, because it's the same axis. Same with up and down, both get assigned "7". In fact I could probably register the Dpad as an analog stick and it would work, but then I'd lose usage of that stick. |
I'm pretty sure that yes, it's trying to use the two axes as buttons. Included is a video (I'm using a DS4 controller), and you can see that while the DPadIssue.mp4I'm also attaching the log that was visible -- which only includes the items seemingly affected by this issue. The issuing command was The key here seems to be that pressing down the left trigger starts with a I can make a new log of whatever might be helpful to diagnose / resolve the issue. Edit: The overlay and io-cct were both using an unmodified dualsense.json file. |
So I never anticipated that gamepads would use an axis for buttons, which at the time seemed like a fairly sane assumption. So if I get this correctly not pressing left or right will result in a virtual value of 0, pressing left will result in 0.5 and pressing right returns 1 and the same for up/down just with a different axis id? |
Sorry, not quite. For absolute clarity: pressing left will result in a value of zero*, pressing right will result in a value of 1*. Releasing them results in a value of 0.5, making that the neutral / resting value. Left/right was identified as native id 6 for the axis, up/down was identified as native id 7. Up was 0*, down was 1*, middle was again .5. (*) The actual 'zero' value for me appears to always be 0.000008, the 'one' value is always 0.999992, for both directions. I don't think that's incredibly relevant, but I'm trying to provide you all information. Apologies if I'm just confusing the matter. For a more visual representation of the above:
|
Ok, now I just somehow need to modify libgamepad in a way where a button can also be an axis. |
Hello ! So i tried to remap as seen in vidéo @HereInPlainSight 's video, like this : But Dpad not working at all, so i return to the binding config, and see that the remap values (left and up) are not stored… here is the jstest result : And finaly i've tested another gamepad, and had same bad résult. |
What does the log file look like after you tried rebinding? The bindings should also be saved to ~/.config/input-overlay so you might want to check what the json file looks like |
Thanks for theses suggestions. Unfortunately there is no binding file in the ~/.config/input-overlay directory, neither childs directory. |
Well it should be created once you click save and apply, if it can't it'll log an error |
Ok. |
Yeah I meant Ok, not Apply. If you just open the dialog and click save without doing any binding and then close obs it should save the config file. If that doesn't work I don't know what the issue is. |
Well I just checked myself and using xboxdrv my dpad now is also an axis. This is just great... |
See #297 for further tracking |
Describe the bug
In v5 prerelease all functions work except d-pad. On v4.8 the d-pad is detected normally.
To Reproduce
Steps to reproduce the behavior: set up as usual, see that d-pad does not work
Expected behavior
D-pad works
Additional information:
Additional context
Problem seems to have been introduced post-4.8
The text was updated successfully, but these errors were encountered: