al_wait_for_event(3)

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

πŸ’– al_wait_for_event(3) πŸ’–

okay bestie, welcome to the Library Functions Manual corner of the Allegroverse β€” this one is short, sweet, and lowkey a whole waiting vibe. ✨

🌸 NAME 🌸

al_wait_for_event β€” Allegro 5 API.

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

void al_wait_for_event(ALLEGRO_EVENT_QUEUE *queue, ALLEGRO_EVENT *ret_event)

πŸ¦‹ DESCRIPTION πŸ¦‹

So like, this function waits until the event queue you specified is non-empty. It just sits there with main character energy until something shows up. πŸ’…

If ret_event is not NULL, the first event in the queue gets copied into ret_event and removed from the queue. Snatched, archived, no longer in the queue β€” periodt. πŸŽ€

If ret_event is NULL, the first event is left at the head of the queue. Not me leaving it right there for later, but yes exactly that. πŸ’€

bestie, this function is literally just waiting. that’s the job. no cap. 🫢

🌈 SEE ALSO 🌈


later bestie! πŸ’œ source/version: Allegro reference manual; page: al_wait_for_event(3); date: not printed in this footer (mysterious, iconic, we move). πŸ¦‹

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