al_wait_for_event_until(3)
okay so bestie, this is al_wait_for_event_until(3) from the Library Functions Manual β the Allegro 5 API page for waiting on an event queue until a timeout says stop. it's giving βwaiting but make it timedβ energy β¨
π NAME π
al_wait_for_event_until β Allegro 5 API. that's the whole name line, no cap π«Ά
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
bool al_wait_for_event_until(ALLEGRO_EVENT_QUEUE *queue,
ALLEGRO_EVENT *ret_event, ALLEGRO_TIMEOUT *timeout)
πΈ DESCRIPTION πΈ
okay so here's the vibe: this function waits until the event queue you passed in is non-empty. if ret_event is not NULL, the first event in the queue gets copied into ret_event and removed from the queue. periodt. π
if ret_event is NULL, the first event is left at the head of the queue β it does not get removed, bestie. it stays right there at the front. π«Ά
timeout determines how long to wait. if the call times out, false is returned. otherwise, if an event ocurred, true is returned. that's the whole return-value situation, fr fr. π
for compatibility with all platforms,timeoutmust be2,147,483.647seconds or less. that's the rule, so don't try to be cute with a bigger number π
π¦ SEE ALSO π¦
go check out these iconique related pages:
ALLEGRO_EVENT(3)ALLEGRO_TIMEOUT(3)al_init_timeout(3)al_wait_for_event(3)al_wait_for_event_timed(3)
source/version: Allegro reference manual β¨ page: al_wait_for_event_until(3) π date: the footer didn't give me one, so we're keeping it mysterious β love that for us π
π¦ 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