Allegro 5 api
#include <allegro5/allegro.h> bool al_is_joystick_installed(void)
Returns true if al_install_joystick(3alleg5) was called successfully.