Skip to content
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

Right analog stick not working correctly #34

Closed
jeffkrull opened this issue May 5, 2022 · 3 comments
Closed

Right analog stick not working correctly #34

jeffkrull opened this issue May 5, 2022 · 3 comments

Comments

@jeffkrull
Copy link

I've just installed JFSW on RetroPie on my Raspberry Pi 4 using the RetroPie-Extras install script, and everything works. I'm able to get .OGG audio running, and both expansions work correctly as well as the main game. However, I'm having a lot of trouble mapping controls.

I'm playing using my 8bitdo SN30 Pro Wired controller, which maps as an Xinput device (Xbox 360 controller). The face buttons and D-pad all map correctly, as well as the LB and RB buttons. However, none of the other buttons map as they should. In the configuration menu, L3 is actually Start, Back is actually LT/L2, Guide is actually Back/Select, and Start is actually RT/R2. On top of that, the right analog stick is completely broken. The RightY axis is always mapped to Strafe, even if I unset the configuration in the menu, and the RightX axis does nothing. The LeftTrigger and RightTrigger axes do nothing either. I don't think this is an issue with my controller, as jstest shows the axes working correctly, and it works in other games I play like lzdoom.

@jonof
Copy link
Owner

jonof commented May 5, 2022

Try grabbing a copy of https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt and putting it alongside the sw.grp file and see if that improves things.

@jeffkrull
Copy link
Author

Thanks for the suggestion. I added the file to the three possible places RetroPie could possibly work (/opt/retropie/ports/jfsw/ alongside the sw executable, /opt/retropie/configs/ports/sw/ alongside the sw.cfg file, and /home/RetroPie/roms/ports/shadowwarrior/ alongside sw.grp), and it had no effect.

@jeffkrull
Copy link
Author

I finally figured out that my problem was entirely with the SDL mapping for the 8bitdo controller. It's not listed in the gamecontrollerdb.txt. I determined the SDL mapping, and now all buttons work properly. This is a non-issue. Thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants