sdlDetachVirtualJoystick function
Detach a virtual joystick.
\param instance_id the joystick instance ID, previously returned from SDL_AttachVirtualJoystick(). \returns true on success or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
\sa SDL_AttachVirtualJoystick
extern SDL_DECLSPEC bool SDLCALL SDL_DetachVirtualJoystick(SDL_JoystickID instance_id)
Implementation
bool sdlDetachVirtualJoystick(int instanceId) {
final sdlDetachVirtualJoystickLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Uint32 instanceId),
int Function(int instanceId)>('SDL_DetachVirtualJoystick');
return sdlDetachVirtualJoystickLookupFunction(instanceId) == 1;
}