sdlHapticRumbleSupported function

int sdlHapticRumbleSupported(
  1. Pointer<SdlHaptic> haptic
)

Check whether rumble is supported on a haptic device.

\param haptic haptic device to check for rumble support \returns SDL_TRUE if effect is supported, SDL_FALSE if it isn't, 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_HapticRumbleStop

extern DECLSPEC int SDLCALL SDL_HapticRumbleSupported(SDL_Haptic * haptic)

Implementation

int sdlHapticRumbleSupported(Pointer<SdlHaptic> haptic) {
  final sdlHapticRumbleSupportedLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlHaptic> haptic),
      int Function(Pointer<SdlHaptic> haptic)>('SDL_HapticRumbleSupported');
  return sdlHapticRumbleSupportedLookupFunction(haptic);
}