---
name: "ALLEGRO_GAMEPAD_BUTTON"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ALLEGRO_GAMEPAD_BUTTON"
---

# ALLEGRO\_GAMEPAD\_BUTTON(3)

Allegro 5 API

## NAME

ALLEGRO\_GAMEPAD\_BUTTON - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  typedef enum ALLEGRO_GAMEPAD_BUTTON
  ```

## DESCRIPTION

- •

  ALLEGRO\_GAMEPAD\_BUTTON\_A - A button

- •

  ALLEGRO\_GAMEPAD\_BUTTON\_B - B button

- •

  ALLEGRO\_GAMEPAD\_BUTTON\_X - X button

- •

  ALLEGRO\_GAMEPAD\_BUTTON\_Y - Y button

- •

  ALLEGRO\_GAMEPAD\_BUTTON\_LEFT\_SHOULDER - left shoulder button

- •

  ALLEGRO\_GAMEPAD\_BUTTON\_RIGHT\_SHOULDER - right shoulder button

- •

  ALLEGRO\_GAMEPAD\_BUTTON\_BACK - back button (also called select sometimes)

- •

  ALLEGRO\_GAMEPAD\_BUTTON\_START - start button

- •

  ALLEGRO\_GAMEPAD\_BUTTON\_GUIDE - guide/home button (this sometimes is intercepted on the OS level, so do not rely on being able to handle it)

- •

  ALLEGRO\_GAMEPAD\_BUTTON\_LEFT\_THUMB - button on the left thumb stick

- •

  ALLEGRO\_GAMEPAD\_BUTTON\_RIGHT\_THUMB - button on the right thumb stick

## SINCE

5\.2.11

## SEE ALSO

[al\_set\_joystick\_mappings(3)](/al_set_joystick_mappings/3.md), [ALLEGRO\_JOYSTICK\_TYPE(3)](/ALLEGRO_JOYSTICK_TYPE/3.md)

*\[Unstable API\]:* New API.
