---
name: "al_get_joystick_axis_name"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_joystick_axis_name/3alleg5"
---

# al\_get\_joystick\_axis\_name(3alleg5)

Allegro 5 API

## NAME

al\_get\_joystick\_axis\_name - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  const char *al_get_joystick_axis_name(ALLEGRO_JOYSTICK *joy, int stick, int axis)
  ```

## DESCRIPTION

Return the name of the given axis. If the axis doesn’t exist, NULL is returned. Indices begin from 0.

## SEE ALSO

al\_get\_joystick\_stick\_name(3alleg5), al\_get\_joystick\_num\_axes(3alleg5)
