DOKK / manpages / debian 10 / allegro5-doc / al_get_keyboard_state.3alleg5.en
al_get_keyboard_state(3alleg5) al_get_keyboard_state(3alleg5)

al_get_keyboard_state - Allegro 5 API

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

Save the state of the keyboard specified at the time the function is called into the structure pointed to by ret_state.

al_key_down(3alleg5), al_clear_keyboard_state(3alleg5), ALLEGRO_KEYBOARD_STATE(3alleg5)

Allegro reference manual