---
name: "al_get_keyboard_state"
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_keyboard_state/3alleg5"
---

# al\_get\_keyboard\_state(3alleg5)

Allegro 5 API

## NAME

al\_get\_keyboard\_state - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_get_keyboard_state(ALLEGRO_KEYBOARD_STATE *ret_state)
  ```

## DESCRIPTION

Save the state of the keyboard specified at the time the function is called into the structure pointed to by *ret\_state*.

## SEE ALSO

al\_key\_down(3alleg5), al\_clear\_keyboard\_state(3alleg5), ALLEGRO\_KEYBOARD\_STATE(3alleg5)
