DOKK / manpages / debian 12 / allegro5-doc / al_flush_event_queue.3alleg5.en
al_flush_event_queue(3alleg5) al_flush_event_queue(3alleg5)

al_flush_event_queue - 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)

Allegro reference manual