---
name: "SDL_GamepadAxis"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GamepadAxis"
---

# SDL\_GamepadAxis(3type)

The list of axes available on a gamepad

## NAME

SDL\_GamepadAxis - The list of axes available on a gamepad

## HEADER FILE

Defined in SDL3/SDL\_gamepad.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef enum SDL\_GamepadAxis** **{**     **SDL\_GAMEPAD\_AXIS\_INVALID = -1,**     **SDL\_GAMEPAD\_AXIS\_LEFTX,**     **SDL\_GAMEPAD\_AXIS\_LEFTY,**     **SDL\_GAMEPAD\_AXIS\_RIGHTX,**     **SDL\_GAMEPAD\_AXIS\_RIGHTY,**     **SDL\_GAMEPAD\_AXIS\_LEFT\_TRIGGER,**     **SDL\_GAMEPAD\_AXIS\_RIGHT\_TRIGGER,**     **SDL\_GAMEPAD\_AXIS\_COUNT** **} SDL\_GamepadAxis;**

## DESCRIPTION

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 gamepads.

Trigger axis values range from 0 (released) to

**SDL\_JOYSTICK\_AXIS\_MAX**\
  (fully pressed) when reported by  **SDL\_GetGamepadAxis** (). Note that this is not the same range that will be reported by the lower-level

**SDL\_GetJoystickAxis** ().

## AVAILABILITY

This enum is available since SDL 3.2.0.
