DOKK / manpages / debian 12 / allegro5-doc / al_get_mouse_num_buttons.3alleg5.en
al_get_mouse_num_buttons(3alleg5) al_get_mouse_num_buttons(3alleg5)

al_get_mouse_num_buttons - Allegro 5 API

#include <allegro5/allegro.h>
unsigned int al_get_mouse_num_buttons(void)
    

Return the number of buttons on the mouse. The first button is 1.

al_get_mouse_num_axes(3alleg5)

Allegro reference manual