SDL_GetHapticEffectStatus(3)
π SDL_GetHapticEffectStatus(3) π
okay so bestie, welcome to the SDL3 FUNCTIONS corner of the manual, and today's main character is SDL_GetHapticEffectStatus β the girl whose whole job is telling you if your haptic effect is currently doing the thing or not. β¨
πΈ NAME πΈ
SDL_GetHapticEffectStatus β get the status of the current effect on the specified haptic device. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_haptic.h>
bool SDL_GetHapticEffectStatus(SDL_Haptic *haptic, SDL_HapticEffectID effect);
like, look at her. two little args, one little bool back. iconic. π
π¦ DESCRIPTION π¦
so real talk: the device must support the SDL_HAPTIC_STATUS feature. no SDL_HAPTIC_STATUS, no status check, periodt. don't come crying to me when the haptic device said "not my era" π
π FUNCTION PARAMETERS π
hapticβ theSDL_Hapticdevice you want to query for the effect status on. your lil buzzing bestie π«Άeffectβ the ID of the haptic effect whose status you're checking. iykyk which one you started π
π RETURN VALUE π
returns true if it is playing, false if it isn't playing or if haptic status isn't supported at all. so like, false is giving "not playing OR not supported," lowkey a two-for-one situation, just so you're not out here confused π
β AVAILABILITY β
this function is available since SDL 3.2.0. so if you're on anything older, she's not there yet, no cap.
π SEE ALSO π
SDL_GetHapticFeatures(3)β go check her out, she's the one who tells you ifSDL_HAPTIC_STATUSis even a thing on your device π§
not me ending this with the reminder that the feature check comes first, bestie. SDL_HAPTIC_STATUS or it's a no from the device π
Simple Directmedia Layer π SDL 3.4.18 π¦ β mwah, that's the source and version, love you, bye, go make something buzz πβ¨π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms