sdlGetMaxHapticEffectsPlaying function
Get the number of effects a haptic device can play at the same time.
This is not supported on all platforms, but will always return a value.
\param haptic the SDL_Haptic device to query maximum playing effects. \returns the number of effects the haptic device can play at the same time or -1 on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
\sa SDL_GetMaxHapticEffects \sa SDL_GetHapticFeatures
extern SDL_DECLSPEC int SDLCALL SDL_GetMaxHapticEffectsPlaying(SDL_Haptic *haptic)
Implementation
int sdlGetMaxHapticEffectsPlaying(Pointer<SdlHaptic> haptic) {
final sdlGetMaxHapticEffectsPlayingLookupFunction = libSdl3.lookupFunction<
Int32 Function(Pointer<SdlHaptic> haptic),
int Function(
Pointer<SdlHaptic> haptic)>('SDL_GetMaxHapticEffectsPlaying');
return sdlGetMaxHapticEffectsPlayingLookupFunction(haptic);
}