Function SDL_DestroyHapticEffect

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

Destroy a haptic effect on the device.

This will stop the effect if it’s running. Effects are automatically destroyed when the device is closed.

§Parameters

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

§Availability

This function is available since SDL 3.2.0.

§See also