sdlHapticStopEffect function

int sdlHapticStopEffect(
  1. Pointer<SdlHaptic> haptic,
  2. 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 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_HapticDestroyEffect \sa SDL_HapticRunEffect

extern DECLSPEC int SDLCALL SDL_HapticStopEffect(SDL_Haptic * haptic, int effect)

Implementation

int sdlHapticStopEffect(Pointer<SdlHaptic> haptic, int effect) {
  final sdlHapticStopEffectLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlHaptic> haptic, Int32 effect),
      int Function(
          Pointer<SdlHaptic> haptic, int effect)>('SDL_HapticStopEffect');
  return sdlHapticStopEffectLookupFunction(haptic, effect);
}