SDL_HapticRumbleSupported(3)

✨ SDL_HapticRumbleSupported ✨

okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today we're checking out SDL_HapticRumbleSupported(3) πŸŽ€

πŸ’– NAME πŸ’–

SDL_HapticRumbleSupported β€” she checks whether rumble is supported on a haptic device. that's it, that's the whole job, and she does it flawlessly πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_haptic.h>

bool SDL_HapticRumbleSupported(SDL_Haptic *haptic);

no cap, that's the entire signature. one function, one pointer, one bool coming back at you 🌸


πŸ“ FUNCTION PARAMETERS πŸ“

  • haptic β€” the haptic device you wanna check for rumble support. like, the actual device. you hand her the device and she tells you if it can vibe. simple as that 🫢

⭐ RETURN VALUE ⭐

Returns true if the effect is supported, or false if it isn't. true = rumble era unlocked. false = no rumble for you, bestie, and honestly? tragic 😭


🌈 AVAILABILITY 🌈

this one is available since SDL 3.2.0. so if you're on something older, she simply does not exist yet. main character hasn't entered the chat πŸ‘‘


πŸ‘‘ SEE ALSO πŸ‘‘


fr fr: if you're about to init a rumble effect, vibe check it with this function first. that's literally what she's here for πŸ’œ

and that's a wrap, babe πŸ’– this page came to you from the Simple Directmedia Layer girlies, SDL 3.4.18, dated right alongside SDL_HapticRumbleSupported(3) β€” go forth and rumble responsibly πŸŽ€βœ¨

πŸ“¦ where this page comes from