godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.93k stars 20.17k forks source link

right side joystick inputs dont work as expected on linux #48976

Open TuxTheAstronaut opened 3 years ago

TuxTheAstronaut commented 3 years ago

Godot version: 3.3.1 official

OS/device including version: Pop OS 20.10 x86_64

Issue description:

when ever I move the right joystick on a game pad instead it will give the input that you would get if I were to move the joystick up this only happens on linux while on windows it works as intended

Steps to reproduce: add up down left and right to your input map and assign the right joystick axis to them then under _processes() or _input() check for those inputs what will happen is if you move the joystick right is that the input action up will trigger instead of right

Minimal reproduction project: GamepadInput.zip

madmiraal commented 3 years ago

Sounds like it may be an issue with your controller's mapping for Linux. If so, it would need to be fixed upstream: https://github.com/gabomdq/SDL_GameControllerDB. I would start by comparing the Linux and Windows mappings in the database for your controller.

TuxTheAstronaut commented 3 years ago

I’ve done more testing and it appears to only be the Xbox series x controller so it could be a driver issue but godot is the only program effected it seems because all the other game engines I tried like unity and Unreal engine work fine with the controller

madmiraal commented 3 years ago

What are the Linux and Windows mappings?