Function SDL_GetMaxHapticEffectsPlaying

pub unsafe extern "C" fn SDL_GetMaxHapticEffectsPlaying(
    haptic: *mut SDL_Haptic,
) -> i32
Available on crate feature dep_sdl3 only.
Expand description

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.

§Parameters

  • haptic: the SDL_Haptic device to query maximum playing effects.

§Return value

Returns the number of effects the haptic device can play at the same time or -1 on failure; call SDL_GetError() for more information.

§Availability

This function is available since SDL 3.2.0.

§See also