When I play fps games on ubuntu, my razer onza xbox360 gamepad controller works as it should except for when I use the left analog stick which only works up/down but it doesn't work left/right. I have the jstest-gtk joysticks installed. If anyone knows how to fix this, it would be greatly appreciated.
jstest-gtk, wiggle the sticks around and ensure that they all report to the computer properly (ignore the configuration in jstest-gtk, no modern game uses that)
Run Steam in Big Picture and configure your controller there, that should fix SDL2 based games, non-Steam games launched through Steam should work as well
For games outside of Steam you have to twiddle with the SDL_GAMECONTROLLERCONFIG variable, but I don't think there is a good tool for that yet, Steam handles that internally.
Also look around the game if you can configure anything in the game themselves.