SDL_GetHapticEffectStatus(3)

SDL_GetHapticEffectStatus3

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

Usage

#include "SDL3/SDL.h"

bool SDL_GetHapticEffectStatus(SDL_Haptic *haptic, int effect);

Header file

Defined in SDL3/SDL_haptic.h

Overview

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.

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