Allegro 5 api
#include <allegro5/allegro.h> bool al_is_event_queue_empty(ALLEGRO_EVENT_QUEUE *queue)
Return true if the event queue specified is currently empty.
al_get_next_event(3alleg5), al_peek_next_event(3alleg5)