al_get_num_joysticks(3)

al_get_num_joysticks3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
int al_get_num_joysticks(void)

Overview

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.

Returns 0 if there is no joystick driver installed.

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.