Allegro 5 api
#include <allegro5/allegro.h> ALLEGRO_EVENT_SOURCE *al_get_joystick_event_source(void)
Returns the global joystick event source. All joystick events are generated by this event source.