al_get_next_event(3)

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

πŸ’– NAME πŸ’–

al_get_next_event β€” Allegro 5 API, bestie. This one’s from the Library Functions Manual, and it’s literally giving β€œpop the next event off the queue” energy. ✨

🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

bool al_get_next_event(ALLEGRO_EVENT_QUEUE *queue, ALLEGRO_EVENT *ret_event)

So yes: it takes an ALLEGRO_EVENT_QUEUE * called queue, an ALLEGRO_EVENT * called ret_event, and returns a bool. No cap. πŸ’…

πŸŽ€ DESCRIPTION πŸŽ€

Okay bestie, here’s the tea: al_get_next_event takes the next event out of the event queue specified, copies the contents into ret_event, and returns true. The original event will be removed from the queue β€” gone, bye, no take-backs. πŸ¦‹

If the event queue is empty, it returns false, and the contents of ret_event are unspecified. That word is doing a lot of work, bestie β€” the manual is not promising you anything cute in there. πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹


xoxo, the Allegro reference manual πŸ’– β€” that’s the source/version on the footer, and there’s literally no date listed on this page, so no fake date, bestie. al_get_next_event(3) out. πŸ’…

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