.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "al_get_num_joysticks" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_get_num_joysticks - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include int al_get_num_joysticks(void) \f[R] .fi .SH DESCRIPTION .PP 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. .PP Returns 0 if there is no joystick driver installed. .SH SEE ALSO .PP al_get_joystick(3alleg5), al_get_joystick_active(3alleg5)