sdlGetHapticFeatures function haptic

int sdlGetHapticFeatures(
  1. Pointer<SdlHaptic> haptic
)

Get the haptic device's supported features in bitwise manner.

\param haptic the SDL_Haptic device to query. \returns a list of supported haptic features in bitwise manner (OR'd), or 0 on failure; call SDL_GetError() for more information.

\since This function is available since SDL 3.2.0.

\sa SDL_HapticEffectSupported \sa SDL_GetMaxHapticEffects

extern SDL_DECLSPEC Uint32 SDLCALL SDL_GetHapticFeatures(SDL_Haptic *haptic)

Implementation

int sdlGetHapticFeatures(Pointer<SdlHaptic> haptic) {
  final sdlGetHapticFeaturesLookupFunction = _libSdl
      .lookupFunction<
        Uint32 Function(Pointer<SdlHaptic> haptic),
        int Function(Pointer<SdlHaptic> haptic)
      >('SDL_GetHapticFeatures');
  return sdlGetHapticFeaturesLookupFunction(haptic);
}