Mapping joystick axes and buttons for GTA SA

Questions about Wine on Linux
Locked
MCMic
Newbie
Newbie
Posts: 1
Joined: Fri Dec 17, 2021 3:15 am

Mapping joystick axes and buttons for GTA SA

Post by MCMic »

Hello,

I would like to play GTA San Andreas using my Logitech F310 controller.
It does not get recognised correctly by the game, meaning the triggers cannot be mapped, the dpad cannot be mapped, and the right stick does not move the camera.

If I go into «wine control» everything seems fine except that dpad and triggers are axes instead of buttons. If I choose «override» in it (I do not understand what this is for), the behavior changes and dpad now outputs both axes and buttons, so I can map it but it will move the character anyway. And the axes of the triggers become the camera controlling one, so this is not usable.

I’ve done a lot of attempt to remap the buttons, with SDL2 gamepad tool, with x360ce 3 and 4, with regedit DirectInput key, but nothing has ever changed anything to the situation.

I am not even sure if the game uses xinput or something else, I do not see xinput when running with the loaddll debug option. And x360ce for instance only works for xinput I think.
I find it really hard to find information on this and it also seems this changed in recent versions of wine, so is there a "modern" way to either remap my axes and buttons, or make my controller appear as an x360 one to the game?

I’ve tried both wine and wine-staging 6.23. I’m currently building git version to give it a try.
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: Mapping joystick axes and buttons for GTA SA

Post by invisible kid »

Not sure if it would help in your situation but I use AntiMicroX:
https://github.com/AntiMicroX/antimicrox
LateralShift
Level 2
Level 2
Posts: 27
Joined: Mon Nov 16, 2020 4:06 pm

Re: Mapping joystick axes and buttons for GTA SA

Post by LateralShift »

Does the f310 support XInput? If so GInput might help.
Locked