al_get_joystick_num_axes
int al_get_joystick_num_axes(ALLEGRO_JOYSTICK *joy, int stick)
Introduced in 5.0.0
Return the number of axes on the given "stick". If the stick doesn't exist, 0 is returned.
See also: al_get_joystick_num_sticks
Examples: ex_joystick_events, ex_joystick_hotplugging
Most helpful discussions: