SDL_GetHapticEffectStatus - Man Page

Get the status of the current effect on the specified haptic device.

Synopsis

#include <SDL3/SDL_haptic.h>

bool SDL_GetHapticEffectStatus(SDL_Haptic *haptic, int effect);

Description

Device must support the SDL_HAPTIC_STATUS feature.

Function Parameters

haptic

the SDL_Haptic device to query for the effect status on.

effect

the ID of the haptic effect to query its status.

Return Value

Returns true if it is playing, false if it isn't playing or haptic status isn't supported.

Availability

This function is available since SDL 3.2.0.

See Also

SDL_GetHapticFeatures(3)

Referenced By

SDL_HAPTIC_STATUS(3), SDL_RunHapticEffect(3).

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS