SDL_GetMaxHapticEffectsPlaying(3)

SDL_GetMaxHapticEffectsPlaying3

Get the number of effects a haptic device can play at the same time.

Usage

#include "SDL3/SDL.h"

int SDL_GetMaxHapticEffectsPlaying(SDL_Haptic *haptic);

Header file

Defined in SDL3/SDL_haptic.h

Overview

This is not supported on all platforms, but will always return a value.

Function 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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.