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)