Function SDL_IsJoystickHaptic

pub unsafe extern "C" fn SDL_IsJoystickHaptic(
    joystick: *mut SDL_Joystick,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Query if a joystick has haptic features.

§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