From 8000e6d9e1af4d2422cc0d18c08bf2353d4ff104 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 27 Dec 2016 09:59:36 -0800 Subject: [PATCH] Added documentation for the game controller axis values --- include/SDL_gamecontroller.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/SDL_gamecontroller.h b/include/SDL_gamecontroller.h index 36af08dbe042d..19974716f71e1 100644 --- a/include/SDL_gamecontroller.h +++ b/include/SDL_gamecontroller.h @@ -247,6 +247,12 @@ extern DECLSPEC void SDLCALL SDL_GameControllerUpdate(void); /** * The list of axes available from a controller + * + * Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX, + * and are centered within ~8000 of zero, though advanced UI will allow users to set + * or autodetect the dead zone, which varies between controllers. + * + * Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX. */ typedef enum {