al_get_joystick_stick_name

const char *al_get_joystick_stick_name(ALLEGRO_JOYSTICK *joy, int stick)
Introduced in 5.0.0

Return the name of the given "stick". If the stick doesn't exist, NULL is returned.

See also: al_get_joystick_axis_name, al_get_joystick_num_sticks

Examples: ex_joystick_hotplugging


Most helpful discussions: