1al_wait_for_event_until(3) al_wait_for_event_until(3)
2
3
4
6 al_wait_for_event_until - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 bool al_wait_for_event_until(ALLEGRO_EVENT_QUEUE *queue,
12 ALLEGRO_EVENT *ret_event, ALLEGRO_TIMEOUT *timeout)
13
15 Wait until the event queue specified is non-empty. If ret_event is not
16 NULL, the first event in the queue will be copied into ret_event and
17 removed from the queue. If ret_event is NULL the first event is left
18 at the head of the queue.
19
20 timeout determines how long to wait. If the call times out, false is
21 returned. Otherwise, if an event ocurred, true is returned.
22
23 For compatibility with all platforms, timeout must be 2,147,483.647
24 seconds or less.
25
27 ALLEGRO_EVENT(3), ALLEGRO_TIMEOUT(3), al_init_timeout(3),
28 al_wait_for_event(3), al_wait_for_event_timed(3)
29
30
31
32Allegro reference manual al_wait_for_event_until(3)