sdlHapticUnpause function

int sdlHapticUnpause(
  1. Pointer<SdlHaptic> haptic
)

Unpause a haptic device.

Call to unpause after SDL_HapticPause().

\param haptic the SDL_Haptic device to unpause \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_HapticPause

extern DECLSPEC int SDLCALL SDL_HapticUnpause(SDL_Haptic * haptic)

Implementation

int sdlHapticUnpause(Pointer<SdlHaptic> haptic) {
  final sdlHapticUnpauseLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlHaptic> haptic),
      int Function(Pointer<SdlHaptic> haptic)>('SDL_HapticUnpause');
  return sdlHapticUnpauseLookupFunction(haptic);
}