al_flush_event_queue

void al_flush_event_queue(ALLEGRO_EVENT_QUEUE *queue)
Introduced in 5.0.0

Drops all events, if any, from the queue.

See also: al_drop_next_event, al_is_event_queue_empty

Examples: ex_vsync


Most helpful discussions:

Other recent discussions: