sdlHapticEffectSupported function

int sdlHapticEffectSupported(
  1. Pointer<SdlHaptic> haptic,
  2. Pointer<SdlHapticEffect> effect
)

Check to see if an effect is supported by a haptic device.

\param haptic the SDL_Haptic device to query \param effect the desired effect to query \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_HapticNewEffect \sa SDL_HapticQuery

extern DECLSPEC int SDLCALL SDL_HapticEffectSupported(SDL_Haptic * haptic, SDL_HapticEffect * effect)

Implementation

int sdlHapticEffectSupported(
    Pointer<SdlHaptic> haptic, Pointer<SdlHapticEffect> effect) {
  final sdlHapticEffectSupportedLookupFunction = libSdl2.lookupFunction<
      Int32 Function(
          Pointer<SdlHaptic> haptic, Pointer<SdlHapticEffect> effect),
      int Function(Pointer<SdlHaptic> haptic,
          Pointer<SdlHapticEffect> effect)>('SDL_HapticEffectSupported');
  return sdlHapticEffectSupportedLookupFunction(haptic, effect);
}