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.
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.