al_get_joystick_button_name
const char *al_get_joystick_button_name(ALLEGRO_JOYSTICK *joy, int button)
Introduced in 5.0.0
Return the name of the given button. If the button doesn't exist, NULL is returned. Indices begin from 0.
See also: al_get_joystick_stick_name, al_get_joystick_axis_name, al_get_joystick_num_buttons
Examples: ex_joystick_hotplugging
Most helpful discussions: