al_get_next_event(3)
π 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