al_get_next_event

bool al_get_next_event(ALLEGRO_EVENT_QUEUE *queue, ALLEGRO_EVENT *ret_event)
Introduced in 5.0.0

Take the next event out of the event queue specified, and copy the contents into ret_event, returning true. The original event will be removed from the queue. If the event queue is empty, return false and the contents of ret_event are unspecified.

See also: ALLEGRO_EVENT, al_peek_next_event, al_wait_for_event

Examples: ex_bitmap_target, ex_dualies, ex_fs_window, ex_glext, ex_membmp, ex_multiwin, ex_opengl, ex_prim, ex_rotate, ex_scale, ex_vsync, ex_winfull


Most helpful discussions:

Other recent discussions: