al_get_joystick_num_axes(3) al_get_joystick_num_axes(3)

al_get_joystick_num_axes - Allegro 5 API

#include <allegro5/allegro.h>
int al_get_joystick_num_axes(ALLEGRO_JOYSTICK *joy, int stick)

Return the number of axes on the given “stick”. If the stick doesn’t exist, 0 is returned.

al_get_joystick_num_sticks(3)

Allegro reference manual