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 5217

Summary: Fix for reverse-mounted joysticks
Product: SDL Reporter: Paul Cercueil <paul>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sezeroz
Version: HG 1.2   
Hardware: All   
OS: Linux   
Attachments: Patch to fix the issue

Description Paul Cercueil 2020-06-27 17:49:39 UTC
Created attachment 4400 [details]
Patch to fix the issue

Joysticks mounted backwards will have absinfo.maximum < absinfo.minimum. In that case the coefficient calculated was wrong.
Comment 1 Ozkan Sezer 2020-09-22 02:16:47 UTC
This patch is in. Thanks.
http://hg.libsdl.org/SDL/rev/58f64ff3011e