Allegro 5 api
#include <allegro5/allegro.h> unsigned int al_get_mouse_num_axes(void)
Return the number of buttons on the mouse. The first axis is 0.
al_get_mouse_num_buttons(3alleg5)