al_get_num_joysticks
int al_get_num_joysticks(void)
Introduced in 5.0.0
Return the number of joysticks currently on the system (or potentially on the system). This number can change after al_reconfigure_joysticks is called, in order to support hotplugging.
Returns 0 if there is no joystick driver installed.
See also: al_get_joystick, al_get_joystick_active
Examples: ex_joystick_events, ex_joystick_hotplugging
Most helpful discussions: