Ubuntu Manpages

SDL_GetJoystickGUIDForID

Get the implementation-dependent GUID of a joystick.

#include <SDL3/SDL_joystick.h>
SDL_GUID SDL_GetJoystickGUIDForID(SDL_JoystickID instance_id);

This can be called before any joysticks are opened.

the joystick instance ID.

Returns the GUID of the selected joystick. If called with an invalid instance_id, this function returns a zero GUID.

This function is available since SDL 3.2.0.

SDL_GetJoystickGUID(3), SDL_GUIDToString(3)