al_get_keyboard_state(3)

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

✨ al_get_keyboard_state(3) ✨

okay bestie, so this is from the Library Functions Manual and it's literally the entire Allegro 5 API page for al_get_keyboard_state β€” short, sweet, and lowkey iconic πŸ’…


πŸŽ€ NAME πŸŽ€

al_get_keyboard_state β€” Allegro 5 API. that's it, that's the whole name, no notes 🫢


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

void al_get_keyboard_state(ALLEGRO_KEYBOARD_STATE *ret_state)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the vibe: you call this function, and it saves the state of the keyboard β€” like, the state of the keyboard at the exact moment the function gets called ⏰✨ β€” and it drops all that into the structure that ret_state is pointing at.

so yeah: pass in a pointer to an ALLEGRO_KEYBOARD_STATE, and boom, you've got a snapshot of what the keyboard was doing right then. main character energy fr fr πŸ‘‘

ngl, if ret_state isn't pointing somewhere valid, that's on you β€” the page doesn't promise anything cute happens πŸ’€

🌈 SEE ALSO 🌈


and that's the page!! mwah πŸ’– brought to you by the Allegro reference manual β€” go forth and read your keyboard state, queen πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ 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