sdlGetJoystickGuid function joystick
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.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
\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 = _libSdl
.lookupFunction<
SdlGuid Function(Pointer<SdlJoystick> joystick),
SdlGuid Function(Pointer<SdlJoystick> joystick)
>('SDL_GetJoystickGUID');
return sdlGetJoystickGuidLookupFunction(joystick);
}