Allegro 5 api
#include <allegro5/allegro.h> bool al_drop_next_event(ALLEGRO_EVENT_QUEUE *queue)
Drop (remove) the next event from the queue. If the queue is empty, nothing happens. Returns true if an event was dropped.
al_flush_event_queue(3alleg5), al_is_event_queue_empty(3alleg5)