mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-27 08:39:09 +00:00
It would be easy to assume that all APIs that reference SDL_JOYSTICK_AXIS_MAX work the same way, but they do not: triggers generally use the full signed 16-bit range in the lower-level joystick API, but are normalized to be non-negative by the higher-level gamepad API. We also never said explicitly which direction is positive here. Experimentally, it's right (X), down (Y), and pressed (triggers). Resolves: https://github.com/libsdl-org/SDL/issues/8793 Signed-off-by: Simon McVittie <smcv@collabora.com>