SDL_HAPTIC_INERTIA(3)

✨ SDL_HAPTIC_INERTIA ✨

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we're talking about SDL_HAPTIC_INERTIA πŸ’–


🌸 NAME 🌸

SDL_HAPTIC_INERTIA β€” inertia effect supported, and it uses axes acceleration πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_haptic.h>

#define SDL_HAPTIC_INERTIA      (1u<<9)

πŸ¦‹ DESCRIPTION πŸ¦‹

so this is a condition haptic effect that simulates inertia ✨ and like, the effect is based on the axes acceleration. that's the whole vibe. it's giving "things keep moving because physics said so" πŸ“


πŸ‘‘ AVAILABILITY πŸ‘‘

this macro has been available since SDL 3.2.0. iconic behavior, no cap πŸ’œ


πŸ’œ SEE ALSO πŸ’œ


and that's the whole page, bestie!! go forth and rumbly-vibrate responsibly 🫢 this little gem came to you from Simple Directmedia Layer, rocking SDL 3.4.18, and it's serving SDL_HAPTIC_INERTIA energy forever and always πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from