sdlHapticRumbleStop function

int sdlHapticRumbleStop(
  1. Pointer<SdlHaptic> haptic
)

Stop the simple rumble on a haptic device.

\param haptic the haptic device to stop the rumble effect on \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_HapticRumbleInit \sa SDL_HapticRumblePlay \sa SDL_HapticRumbleSupported

extern DECLSPEC int SDLCALL SDL_HapticRumbleStop(SDL_Haptic * haptic)

Implementation

int sdlHapticRumbleStop(Pointer<SdlHaptic> haptic) {
  final sdlHapticRumbleStopLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlHaptic> haptic),
      int Function(Pointer<SdlHaptic> haptic)>('SDL_HapticRumbleStop');
  return sdlHapticRumbleStopLookupFunction(haptic);
}