logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

al_get_num_joysticks - Allegro 5 API

Description

       Return  the  number of joysticks currently on the system (or potentially on the system).  This number can
       change after al_reconfigure_joysticks(3alleg5) is called, in order to support hotplugging.

       Returns 0 if there is no joystick driver installed.

Name

       al_get_num_joysticks - Allegro 5 API

See Also

al_get_joystick(3alleg5), al_get_joystick_active(3alleg5)

Allegro reference manual                                                           al_get_num_joysticks(3alleg5)

Synopsis

              #include <allegro5/allegro.h>

              int al_get_num_joysticks(void)

See Also