ALLEGRO_KEYBOARD_STATE(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

🌸 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 to NULL.
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