---
name: "SDL_IsJoystickHaptic"
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_IsJoystickHaptic"
---

# SDL\_IsJoystickHaptic(3)

Query if a joystick has haptic features.

## NAME

SDL\_IsJoystickHaptic - Query if a joystick has haptic features.

## HEADER FILE

Defined in SDL3/SDL\_haptic.h

## SYNOPSIS

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

**bool SDL\_IsJoystickHaptic(SDL\_Joystick \*joystick);**

## FUNCTION PARAMETERS

- *joystick*

  the  **SDL\_Joystick**\
    to test for haptic capabilities.

## RETURN VALUE

Returns true if the joystick is haptic or false if it isn't.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_OpenHapticFromJoystick**(3)](/SDL_OpenHapticFromJoystick/3.md)
