SDL_GetJoystickGUID - Man Page

Get the implementation-dependent GUID for the joystick.

Synopsis

#include <SDL3/SDL_joystick.h>

SDL_GUID SDL_GetJoystickGUID(SDL_Joystick *joystick);

Description

This function requires an open joystick.

Function Parameters

joystick

the SDL_Joystick obtained from SDL_OpenJoystick().

Return Value

Returns the GUID of the given joystick. If called on an invalid index, this function returns a zero GUID; call SDL_GetError() for more information.

Availability

This function is available since SDL 3.2.0.

See Also

SDL_GetJoystickGUIDForID(3), SDL_GUIDToString(3)

Referenced By

SDL_GetGamepadMappingForGUID(3), SDL_GetJoystickGUIDForID(3).

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS