sdlResumeHaptic function

bool sdlResumeHaptic(
  1. Pointer<SdlHaptic> haptic
)

Resume a haptic device.

Call to unpause after SDL_PauseHaptic().

\param haptic the SDL_Haptic device to unpause. \returns true on success or false on failure; call SDL_GetError() for more information.

\since This function is available since SDL 3.1.3.

\sa SDL_PauseHaptic

extern SDL_DECLSPEC bool SDLCALL SDL_ResumeHaptic(SDL_Haptic *haptic)

Implementation

bool sdlResumeHaptic(Pointer<SdlHaptic> haptic) {
  final sdlResumeHapticLookupFunction = libSdl3.lookupFunction<
      Uint8 Function(Pointer<SdlHaptic> haptic),
      int Function(Pointer<SdlHaptic> haptic)>('SDL_ResumeHaptic');
  return sdlResumeHapticLookupFunction(haptic) == 1;
}