---
name: "SDL_DetachVirtualJoystick"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_DetachVirtualJoystick"
---

# SDL\_DetachVirtualJoystick(3)

Detach a virtual joystick.

## NAME

SDL\_DetachVirtualJoystick - Detach a virtual joystick.

## HEADER FILE

Defined in SDL3/SDL\_joystick.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_DetachVirtualJoystick(SDL\_JoystickID instance\_id);**

## FUNCTION PARAMETERS

- *instance\_id*

  the joystick instance ID, previously returned from  **SDL\_AttachVirtualJoystick** ().

## RETURN VALUE

Returns true on success or false on failure; call

**SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_AttachVirtualJoystick**(3)](/SDL_AttachVirtualJoystick/3.md)
