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 2319

Summary: Incorrect documentation for SDL_GameControllerGetAxis
Product: SDL Reporter: Turo Lamminen <turotl>
Component: joystickAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2 CC: icculus
Version: 2.0.1   
Hardware: All   
OS: All   

Description Turo Lamminen 2013-12-19 13:29:56 UTC
Documentation for SDL_GameControllerGetAxis is inaccurate.

Both wiki and header file state that "The state is a value ranging from -32768 to 32767." This is only the case for stick axes. Triggers range from 0 to 32767.
Comment 1 Ryan C. Gordon 2015-02-18 21:28:40 UTC
Fixed in https://hg.libsdl.org/SDL/rev/3d0af39849fa and corrected the wiki.

--ryan.