sdlGetJoystickGuidForId function
Get the implementation-dependent GUID of a joystick.
This can be called before any joysticks are opened.
\param instance_id the joystick instance ID. \returns the GUID of the selected joystick. If called with an invalid instance_id, this function returns a zero GUID.
\since This function is available since SDL 3.1.3.
\sa SDL_GetJoystickGUID \sa SDL_GUIDToString
extern SDL_DECLSPEC SDL_GUID SDLCALL SDL_GetJoystickGUIDForID(SDL_JoystickID instance_id)
Implementation
SdlGuid sdlGetJoystickGuidForId(int instanceId) {
final sdlGetJoystickGuidForIdLookupFunction = libSdl3.lookupFunction<
SdlGuid Function(Uint32 instanceId),
SdlGuid Function(int instanceId)>('SDL_GetJoystickGUIDForID');
return sdlGetJoystickGuidForIdLookupFunction(instanceId);
}