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 - Incorrect documentation for SDL_GameControllerGetAxis
Summary: Incorrect documentation for SDL_GameControllerGetAxis
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 2.0.1
Hardware: All All
: P2 minor
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-19 13:29 UTC by Turo Lamminen
Modified: 2015-02-18 21:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.