al_get_joystick_axis_name

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

Return the name of the given axis. If the axis doesn't exist, NULL is returned. Indices begin from 0.

See also: al_get_joystick_stick_name, al_get_joystick_num_axes

Examples: ex_joystick_hotplugging