---
name: "SDL_CloseHaptic"
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_CloseHaptic"
---

# SDL\_CloseHaptic(3)

Close a haptic device previously opened with SDL\_OpenHaptic ().

## NAME

SDL\_CloseHaptic - Close a haptic device previously opened with  **SDL\_OpenHaptic** ().

## HEADER FILE

Defined in SDL3/SDL\_haptic.h

## SYNOPSIS

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

**void SDL\_CloseHaptic(SDL\_Haptic \*haptic);**

## FUNCTION PARAMETERS

- *haptic*

  the  **SDL\_Haptic**\
    device to close.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_OpenHaptic**(3)](/SDL_OpenHaptic/3.md)
