Allegro 5 api
#include <allegro5/allegro.h> void al_flush_event_queue(ALLEGRO_EVENT_QUEUE *queue)
Drops all events, if any, from the queue.
al_drop_next_event(3alleg5), al_is_event_queue_empty(3alleg5)