sdlHapticStopAll function

int sdlHapticStopAll(
  1. Pointer<SdlHaptic> haptic
)

Stop all the currently playing effects on a haptic device.

\param haptic the SDL_Haptic device 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.

extern DECLSPEC int SDLCALL SDL_HapticStopAll(SDL_Haptic * haptic)

Implementation

int sdlHapticStopAll(Pointer<SdlHaptic> haptic) {
  final sdlHapticStopAllLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlHaptic> haptic),
      int Function(Pointer<SdlHaptic> haptic)>('SDL_HapticStopAll');
  return sdlHapticStopAllLookupFunction(haptic);
}