al_get_joystick_guid(3) Library Functions Manual al_get_joystick_guid(3)

al_get_joystick_guid - Allegro 5 API

#include <allegro5/allegro.h>
ALLEGRO_JOYSTICK_GUID al_get_joystick_guid(ALLEGRO_JOYSTICK *joy)

Returns the joystick GUID, that can be used to distinguish joysticks hardware. Despite the name, these do not need to be actually unique to do the limitations of the system that computes them. This can be all zeros when unknown.

5.2.11

ALLEGRO_JOYSTICK_GUID(3)

[Unstable API]: New API.

Allegro reference manual