table of contents
other versions
SDL_JoystickIsHaptic(3) | SDL3 FUNCTIONS | SDL_JoystickIsHaptic(3) |
NAME¶
SDL_JoystickIsHaptic - Query if a joystick has haptic features.
SYNOPSIS¶
#include "SDL3/SDL.h"
int SDL_JoystickIsHaptic(SDL_Joystick * joystick);
FUNCTION PARAMETERS¶
- joystick
- the SDL_Joystick
to test for haptic capabilities
RETURN VALUE¶
Returns SDL_TRUE
if the joystick is haptic,
SDL_FALSE
if it isn't, or a negative error code on failure; call SDL_GetError ()
for more information.
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL_HapticOpenFromJoystick(3)
SDL 3.0.0 | SDL |