Scroll to navigation

SDL_HapticGetEffectStatus(3) SDL3 FUNCTIONS SDL_HapticGetEffectStatus(3)

NAME

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

SYNOPSIS

#include "SDL3/SDL.h"
int SDL_HapticGetEffectStatus(SDL_Haptic * haptic,
                              int effect);

DESCRIPTION

Device must support the SDL_HAPTIC_STATUS
feature.

FUNCTION PARAMETERS

the SDL_Haptic
device to query for the effect status on
the ID of the haptic effect to query its status

RETURN VALUE

Returns 0 if it isn't playing, 1 if it is playing, or a negative error code on failure; call SDL_GetError () for more information.

AVAILABILITY

This function is available since SDL 3.0.0.

SEE ALSO

SDL_HapticRunEffect(3), SDL_HapticStopEffect(3)

SDL 3.0.0 SDL