al_wait_for_event_timed(3)
π NAME π
okay so bestie, welcome to al_wait_for_event_timed(3) β it's straight outta the Library Functions Manual and it's the Allegro 5 API. that's the name sitch, periodt.
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
bool al_wait_for_event_timed(ALLEGRO_EVENT_QUEUE *queue,
ALLEGRO_EVENT *ret_event, float secs)
β¨ DESCRIPTION β¨
So al_wait_for_event_timed waits until the event queue you specified is non-empty. That's the whole mission, no cap.
Now the ret_event tea: if ret_event is not NULL, the first event in the queue gets copied into ret_event and removed from the queue. If ret_event is NULL, the first event is left at the head of the queue. literally left there, untouched, main character energy.
secs determines approximately how many seconds to wait. If the call times out, false is returned. Otherwise, if an event occurred, true is returned. yes bestie, that's a bool and it's giving success/failure realness.
for compatibility with all platforms,secsmust be2,147,483.647seconds or less. that's the compatibility ceiling, fr fr β don't get cute with a bigger number.
π¦ SEE ALSO π¦
ALLEGRO_EVENT(3)β the event type situational_wait_for_event(3)β the non-timed waiting bestieal_wait_for_event_until(3)β the wait-until-a-deadline bestie
xoxo, source/version: the Allegro reference manual (no separate version listed) π«Ά page: al_wait_for_event_timed(3) β date: none printed on this one, just pure documentation energy, mwah π
π¦ 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