DOKK / manpages / debian 11 / allegro5-doc / al_get_joystick_num_buttons.3alleg5.en
al_get_joystick_num_buttons(3alleg5) al_get_joystick_num_buttons(3alleg5)

al_get_joystick_num_buttons - Allegro 5 API

#include <allegro5/allegro.h>
int al_get_joystick_num_buttons(ALLEGRO_JOYSTICK *joy)
    

Return the number of buttons on the joystick.

al_get_joystick_num_sticks(3alleg5)

Allegro reference manual