Allegro 5 api
#include <allegro5/allegro.h> const char *al_get_joystick_stick_name(ALLEGRO_JOYSTICK *joy, int stick)
Return the name of the given "stick". If the stick doesn\[aq]t exist, NULL is returned.
al_get_joystick_axis_name(3alleg5), al_get_joystick_num_sticks(3alleg5)