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 πŸ’œ


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