al_get_joystick_num_sticks

int al_get_joystick_num_sticks(ALLEGRO_JOYSTICK *joy)
Introduced in 5.0.0

Return the number of "sticks" on the given joystick. A stick has one or more axes.

See also: al_get_joystick_num_axes, al_get_joystick_num_buttons

Examples: ex_joystick_events, ex_joystick_hotplugging


Most helpful discussions: