carta
al_get_joystick_type(3)

al_get_joystick_type3

Allegro 5 api

Overview

Returns the joystick type. If the type is ALLEGRO_JOYSTICK_TYPE_GAMEPAD, then you can use the ALLEGRO_GAMEPAD_BUTTON(3) and ALLEGRO_GAMEPAD_STICK(3) to interpret the button/stick events and states more easily. Joystick types will typically be unknown unless al_set_joystick_mappings(3) is called first.

Since

5.2.11

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