DOKK / manpages / debian 13 / libsdl3-doc / SDL_IsJoystickHaptic.3.en
SDL_IsJoystickHaptic(3) SDL3 FUNCTIONS SDL_IsJoystickHaptic(3)

SDL_IsJoystickHaptic - Query if a joystick has haptic features.

Defined in SDL3/SDL_haptic.h

#include "SDL3/SDL.h"
bool SDL_IsJoystickHaptic(SDL_Joystick *joystick);

the SDL_Joystick
to test for haptic capabilities.

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

This function is available since SDL 3.2.0.

(3), SDL_OpenHapticFromJoystick(3)

SDL 3.2.10 Simple Directmedia Layer