logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This function is available since SDL 3.2.0.

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.

Name

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

Return Value

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

See Also

SDL_GetHapticFeatures(3)

Simple Directmedia Layer                           SDL 3.2.20                       SDL_GetHapticEffectStatus(3)

Synopsis

#include<SDL3/SDL_haptic.h>boolSDL_GetHapticEffectStatus(SDL_Haptic*haptic,inteffect);

See Also