SDL_HAPTIC_AUTOCENTER(3)

πŸ’– SDL_HAPTIC_AUTOCENTER(3) πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we talk about haptics and vibes (literally, the rumble kind) ✨


🌸 NAME 🌸

SDL_HAPTIC_AUTOCENTER β€” the device can set autocenter, no cap.


✨ SYNOPSIS ✨

#include <SDL3/SDL_haptic.h>

#define SDL_HAPTIC_AUTOCENTER (1u<<17)

like, that's the whole thing. one include, one define. she's lowkey iconic for being this simple πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically? the device supports setting autocenter. that's it, that's the tea πŸ’…

it's a flag you can check for β€” if it's there, your haptic device can do the autocenter thing. periodt.


πŸ‘‘ AVAILABILITY πŸ‘‘

this macro is available since SDL 3.2.0. so if you're on anything older, sorry babe, she's not there yet 😭


🌈 SEE ALSO 🌈


mwah πŸ’‹ this lil page came to you from Simple Directmedia Layer, living in SDL 3.4.18. go forth and rumble responsibly, bestie 🧚✨

πŸ“¦ where this page comes from