sdlGetJoystickGuid function
Get the implementation-dependent GUID for the joystick.
This function requires an open joystick.
\param joystick the SDL_Joystick obtained from SDL_OpenJoystick(). \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.
\since This function is available since SDL 3.1.3.
\sa SDL_GetJoystickGUIDForID \sa SDL_GUIDToString
extern SDL_DECLSPEC SDL_GUID SDLCALL SDL_GetJoystickGUID(SDL_Joystick *joystick)
Implementation
SdlGuid sdlGetJoystickGuid(Pointer<SdlJoystick> joystick) {
final sdlGetJoystickGuidLookupFunction = libSdl3.lookupFunction<
SdlGuid Function(Pointer<SdlJoystick> joystick),
SdlGuid Function(Pointer<SdlJoystick> joystick)>('SDL_GetJoystickGUID');
return sdlGetJoystickGuidLookupFunction(joystick);
}