sdlStopHapticRumble function haptic

bool sdlStopHapticRumble(
  1. Pointer<SdlHaptic> haptic
)

Stop the simple rumble on a haptic device.

\param haptic the haptic device to stop the rumble effect on. \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_PlayHapticRumble

extern SDL_DECLSPEC bool SDLCALL SDL_StopHapticRumble(SDL_Haptic *haptic)

Implementation

bool sdlStopHapticRumble(Pointer<SdlHaptic> haptic) {
  final sdlStopHapticRumbleLookupFunction = _libSdl
      .lookupFunction<
        Uint8 Function(Pointer<SdlHaptic> haptic),
        int Function(Pointer<SdlHaptic> haptic)
      >('SDL_StopHapticRumble');
  return sdlStopHapticRumbleLookupFunction(haptic) == 1;
}