1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
.TH al_get_num_joysticks 3 "" "Allegro reference manual"
.SH NAME
.PP
al_get_num_joysticks \- Allegro 5 API
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <allegro5/allegro.h>
int\ al_get_num_joysticks(void)
\f[]
.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(3) is called, in
order to support hotplugging.
.PP
Returns 0 if there is no joystick driver installed.
.SH SEE ALSO
.PP
al_get_joystick(3), al_get_joystick_active(3)
|