sdlDestroyHapticEffect function

void sdlDestroyHapticEffect(
  1. Pointer<SdlHaptic> haptic,
  2. int effect
)

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.

\param haptic the SDL_Haptic device to destroy the effect on. \param effect the ID of the haptic effect to destroy.

\since This function is available since SDL 3.1.3.

\sa SDL_CreateHapticEffect

extern SDL_DECLSPEC void SDLCALL SDL_DestroyHapticEffect(SDL_Haptic *haptic, int effect)

Implementation

void sdlDestroyHapticEffect(Pointer<SdlHaptic> haptic, int effect) {
  final sdlDestroyHapticEffectLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlHaptic> haptic, Int32 effect),
      void Function(
          Pointer<SdlHaptic> haptic, int effect)>('SDL_DestroyHapticEffect');
  return sdlDestroyHapticEffectLookupFunction(haptic, effect);
}