Function SDL_StopHapticEffect

pub unsafe extern "C" fn SDL_StopHapticEffect(
    haptic: *mut SDL_Haptic,
    effect: i32,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Stop the haptic effect on its associated haptic device.

§Parameters

  • haptic: the SDL_Haptic device to stop the effect on.
  • effect: the ID of the haptic effect to stop.

§Return value

Returns true on success or false on failure; call SDL_GetError() for more information.

§Availability

This function is available since SDL 3.2.0.

§See also