stopEffect method

bool stopEffect(
  1. int effect
)

Stop the haptic effect on its associated haptic device.

\param haptic the SDL_Haptic device to stop the effect on. \param effect the ID of the haptic effect to stop. \returns true on success or false on failure; call SDL_GetError() for more information.

\since This function is available since SDL 3.2.0.

\sa SDL_RunHapticEffect \sa SDL_StopHapticEffects

extern SDL_DECLSPEC bool SDLCALL SDL_StopHapticEffect(SDL_Haptic *haptic, SDL_HapticEffectID effect)

Implementation

bool stopEffect(int effect) => sdlStopHapticEffect(this, effect);