al_get_joystick_active

bool al_get_joystick_active(ALLEGRO_JOYSTICK *joy)
Introduced in 5.0.0

Return if the joystick handle is "active", i.e. in the current configuration, the handle represents some physical device plugged into the system. al_get_joystick returns active handles. After reconfiguration, active handles may become inactive, and vice versa.

See also: al_reconfigure_joysticks

Examples: ex_joystick_hotplugging


Most helpful discussions: