-
Notifications
You must be signed in to change notification settings - Fork 372
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
Fix Sony DualSense L2/R2 axises (udev) #1135
Conversation
input_l2_axis and input_r2_axis expect axises, hence should be using the analog indexes +2 & +5 instead of the digital indexes 6 & 7
I changed it from _btn:
to _axis:
you don't solve a regression by adding the new values like you did:
However, there's a reason why I uploaded my autoconfig. Your autoconfig will cause a regression for my controller. Here's a summary from the current autoconfig that I uploaded:
Please copy/paste/modify/reply your data:
|
At 8150723#diff-c1c9ed65f7bce6977c157ddff0576e61fc138bed4f67af333413810100235a93L19-L20, it used to be
Afaik, that syntax you used is not correct : With your changes, L2 and R2 won't act like analog axises, this is 100% a regression. This is the model i'm using, i think that's the same model you are using : I'm on Gentoo Linux with a kernel 6.6.21, using a recent nightly of retroarch. I don't know how you check dualsense firmware version, fwiw my kernel is saying this :
And this is the output of jstest, which is the most reliable tool for creating udev autoconfigs :
|
On a sidenote, the reason why you must use |
You are right, sorry.
Thank you, can you please document this in https://github.com/libretro/docs/blob/master/docs/guides/controller-autoconfiguration.md ?
I have overlooked this issue so many tims.
With this the 8150723 regression should be fixed by replacing _axis with _btn (because that is what RA generates). Can you modify it?:
|
There is nothing to modify. We need
for proper trigger analog behavior. Note that pressing an analog trigger in retroarch will automatically press its digital counterpart at the same time, so there is no reason to ever have
|
Thank you very much for taking your time, I appreciate it! Issue 1
Thank you, can you please document this in https://github.com/libretro/docs/blob/master/docs/guides/controller-autoconfiguration.md ? Issue 2
Issue 3You need to comment why you modified these variables in the autoconfig file, for us to understand why the uploaded file looks differently than the autoconfig generated by RA. Otherwise, people will re-upload a new autoconfig file again in the future because they think it's "outdated". Also, include the GitHub issue link (see Issue 2) in the comment. |
I added some comments about this in the fixed autoconfig file. |
I'll take care of it.
I found an active bug report on this issue
Thank you for solving this. Can you please add this link as references in your comments in the autoconfig file: |
Done |
Done: |
…cfg to Sony Interactive Entertainment DualSense Wireless Controller.cfg # Renamed the file `Settings -> Input -> RetroPad Binds -> Port 1 Controls -> Save Controller Profile` generates: * `linuxraw/Sony Interactive Entertainment DualSense Wireless Controller.cfg` not `linuxraw/Sony Interactive Entertainment Wireless Controller.cfg` # Added pressure sensitivity key bindings to L2/R2 Replaced L2/R2 digital buttons with analog axes (pressure sensitivity) since RetroArch does not generate them correctly for these buttons due to a bug (see also libretro#1135).
Here's the new guide how to use jstest: |
input_l2_axis and input_r2_axis expect axises, hence should be using the analog indexes +2 & +5 instead of the digital indexes 6 & 7
Fix regression from 8150723