We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5269

Summary: Deadzone incorrectly applied to trigger on Linux
Product: SDL Reporter: Mathieu Eyraud <meyraud705>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: WAITING --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.13   
Hardware: x86_64   
OS: Linux   

Description Mathieu Eyraud 2020-08-25 12:13:18 UTC
On Linux, deadzone for joystick axis are applied around 0. For triggers, this make their value snap on 0 in the middle of their travel.

I think deadzone should be applied around the rest value of the axis.
Comment 1 Sam Lantinga 2020-12-09 14:44:23 UTC
Do you have a tested patch to fix this? I'm not sure whether Linux joysticks have specific axes that are designated as triggers.
Comment 2 Mathieu Eyraud 2020-12-10 09:48:02 UTC
Taking a look at SDL_gamecontrollerdb.h, there is no axis designated for triggers.

Personnaly, I agree with pj5085 (bug5241) that deadzone should be removed. That would fix this bug.