Get the status of the current effect on the specified haptic device.
Defined in <SDL3/SDL_haptic.h>
bool SDL_GetHapticEffectStatus(SDL_Haptic *haptic, int effect);
SDL_Haptic * | haptic | the SDL_Haptic device to query for the effect status on. |
int | effect | the ID of the haptic effect to query its status. |
(bool) Returns true if it is playing, false if it isn't playing or haptic status isn't supported.
Device must support the SDL_HAPTIC_STATUS feature.
This function is available since SDL 3.1.3.