ALLEGRO_KEYBOARD_STATE(3)
πΈ NAME πΈ
okay so this is the ALLEGRO_KEYBOARD_STATE(3) page from the Library Functions Manual, aka the Allegro 5 API. The actual name is ALLEGRO_KEYBOARD_STATE β Allegro 5 API. Slay, we been knew π
.
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
typedef struct ALLEGRO_KEYBOARD_STATE ALLEGRO_KEYBOARD_STATE;
π¦ DESCRIPTION π¦
bestie, this is a structure that holds a βsnapshotβ of a keyboardβs state at a particular instant. It contains the following publically readable fields:
displayβ points to the display that had keyboard focus at the time the state was saved. If no display was focused, this points toNULL.
okay important vibe check: you cannot read the state of keys directly. Use the function al_key_down(3) β thatβs the move, no cap ππ
okay that's the whole page, bestie β brought to you by the Allegro reference manual (Allegro 5 API energy), page ALLEGRO_KEYBOARD_STATE(3); the original footer didn't give me a date, so that's the honest tea ππ«Ά
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms