logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_IsJoystickHaptic - Query if a joystick has haptic features.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

joystick
              the SDL_Joystick to test for haptic capabilities.

Name

       SDL_IsJoystickHaptic - Query if a joystick has haptic features.

Return Value

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

See Also

SDL_OpenHapticFromJoystick(3)

Simple Directmedia Layer                           SDL 3.2.20                            SDL_IsJoystickHaptic(3)

Synopsis

#include<SDL3/SDL_haptic.h>boolSDL_IsJoystickHaptic(SDL_Joystick*joystick);

See Also