sdlGetJoystickId function joystick
Get the instance ID of an opened joystick.
\param joystick an SDL_Joystick structure containing joystick information. \returns the instance ID of the specified joystick on success or 0 on failure; 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.
extern SDL_DECLSPEC SDL_JoystickID SDLCALL SDL_GetJoystickID(SDL_Joystick *joystick)
Implementation
int sdlGetJoystickId(Pointer<SdlJoystick> joystick) {
final sdlGetJoystickIdLookupFunction = _libSdl
.lookupFunction<
Uint32 Function(Pointer<SdlJoystick> joystick),
int Function(Pointer<SdlJoystick> joystick)
>('SDL_GetJoystickID');
return sdlGetJoystickIdLookupFunction(joystick);
}