im on linux, using an xbox one wired controller, all buttons work except the left and right joysticks up and down are opposite. Just fixed the problem
i fixed it by changing:
usedGamepad.dx_l = dx_l
usedGamepad.dx_r = dx_r
usedGamepad.dy_l = -dy_l...