SDL_HAPTIC_STATUS(3)
π SDL_HAPTIC_STATUS π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages β this one is short and sweet and it's literally just a little flag, so let's go β¨
πΈ NAME πΈ
SDL_HAPTIC_STATUS β Device can be queried for effect status.
like. the whole vibe is: can this haptic device tell you how a rumble effect is doing π
π SYNOPSIS π
#include <SDL3/SDL_haptic.h>
#define SDL_HAPTIC_STATUS (1u<<18)
no cap, that's the entire thing. one include, one macro, one lil bit shift π«Ά
π¦ DESCRIPTION π¦
So SDL_HAPTIC_STATUS is a capability flag, and its whole personality is: the device supports querying effect status. that's it, that's the tea π
If this bit is set, the haptic device isn't just a dumb rumble machine β it can actually be asked how an effect is currently doing. the way that a device either has this energy or it doesn't π
ngl, this is a capability bit, so treat it like one β check for it before assuming you can query status, bestie. no guessing, fr fr.
β¨ AVAILABILITY β¨
This macro is available since SDL 3.2.0. so if you're on something older than that... girl, upgrade π
π SEE ALSO π
SDL_GetHapticEffectStatus(3)β the actual function you'd call once this flag tells you it's allowed π
okay that's the page!! it was written by the lovely humans of the Simple Directmedia Layer project, this version is SDL 3.4.18, and that's a wrap bestie β go query some effect status, you absolute icon πβ¨π
π¦ 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