Games do not recognize well my gamepad buttons

Hey there, I have a generic directinput gamepad and the system seems to recognize it well, but whenever I run a game, the buttons are mapped incorrectly (for example, if I press a button of the gamepad, the game recognizes it as a trigger or a Dpad direction).
In steam games I managed to solve this by mapping the buttons correctly with the joystick configuration, but I didn’t find a way to remap the buttons for non-steam games.
Is there a program like x360ce that fulfills this purpose or a way to remap the gamepad from commandline? I tried using SDL2 Gamepad Tool but it didn’t change anything.

Here’s a long read.
https://wiki.archlinux.org/title/Gamepad

1 Like

Install and run SC-Controller.