Allegro 5 api
#include <allegro5/allegro.h> ALLEGRO_EVENT_SOURCE *al_get_display_event_source(ALLEGRO_DISPLAY *display)
Retrieve the associated event source.