DavidoTek / ProtonUp-Qt

Install and manage GE-Proton, Luxtorpeda & more for Steam and Wine-GE & more for Lutris with this graphical user interface.
https://davidotek.github.io/protonup-qt
GNU General Public License v3.0
1.18k stars 39 forks source link

Increase Gamepad Deadzone #259

Closed DavidoTek closed 1 year ago

DavidoTek commented 1 year ago

Fix https://github.com/DavidoTek/ProtonUp-Qt/issues/257

As the input range is from -32768 to 32767, a deadzone of 1800 should be fine. Even a slight movement of the gamepad sticks, cause values above/below +-2000.


Joystick range/drift can be determined with following command: flatpak run --command=python3 net.davidotek.pupgui2 -c "import inputs; [[print(e.code, e.state) for e in inputs.get_gamepad()] for i in range(1000)]" It will print all gamepad events. Returning to back to the middle of the joystick should yield a zero value.