.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL's wiki page for SDL_GamepadAxis: .\" https://wiki.libsdl.org/SDL_GamepadAxis .\" Generated with SDL/build-scripts/wikiheaders.pl .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20SDL_GamepadAxis .\" SDL can be found at https://libsdl.org/ .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH SDL_GamepadAxis 3type "SDL 3.2.5" "Simple Directmedia Layer" "SDL3 DATATYPES" .SH NAME SDL_GamepadAxis \- The list of axes available on a gamepad .SH HEADER FILE Defined in SDL3/SDL_gamepad\[char46]h .SH SYNOPSIS .nf .B #include \(dqSDL3/SDL.h\(dq .PP .BI "typedef enum SDL_GamepadAxis .BI "{ .BI " SDL_GAMEPAD_AXIS_INVALID = -1, .BI " SDL_GAMEPAD_AXIS_LEFTX, .BI " SDL_GAMEPAD_AXIS_LEFTY, .BI " SDL_GAMEPAD_AXIS_RIGHTX, .BI " SDL_GAMEPAD_AXIS_RIGHTY, .BI " SDL_GAMEPAD_AXIS_LEFT_TRIGGER, .BI " SDL_GAMEPAD_AXIS_RIGHT_TRIGGER, .BI " SDL_GAMEPAD_AXIS_COUNT .BI "} SDL_GamepadAxis; .fi .SH DESCRIPTION Thumbstick axis values range from .BR SDL_JOYSTICK_AXIS_MIN to .BR 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 gamepads\[char46] Trigger axis values range from 0 (released) to .BR SDL_JOYSTICK_AXIS_MAX (fully pressed) when reported by .BR SDL_GetGamepadAxis ()\[char46] Note that this is not the same range that will be reported by the lower-level .BR SDL_GetJoystickAxis ()\[char46] .SH AVAILABILITY This enum is available since SDL 3\[char46]2\[char46]0\[char46]