al_get_joystick_num_buttons

int al_get_joystick_num_buttons(ALLEGRO_JOYSTICK *joy)
Introduced in 5.0.0

Return the number of buttons on the joystick.

See also: al_get_joystick_num_sticks

Examples: ex_joystick_events, ex_joystick_hotplugging


Most helpful discussions: