SDL_IsJoystickHaptic(3)

SDL_IsJoystickHaptic3

Query if a joystick has haptic features.

Usage

#include "SDL3/SDL.h"

bool SDL_IsJoystickHaptic(SDL_Joystick *joystick);

Header file

Defined in SDL3/SDL_haptic.h

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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.