SDL_HAPTIC_SINE(3)

✨ SDL_HAPTIC_SINE ✨

okay bestie, welcome to the SDL_HAPTIC_SINE page of the SDL3 functions manual πŸ’– buckle up, it's short but it's iconic.


🌸 NAME 🌸

SDL_HAPTIC_SINE β€” sine wave effect supported. that's it, that's the whole vibe πŸ¦‹


πŸ’… SYNOPSIS πŸ’…

#include <SDL3/SDL_haptic.h>

#define SDL_HAPTIC_SINE         (1u<<1)

no cap, that's literally the whole thing. a header include and one macro. slay ✨


πŸŽ€ DESCRIPTION πŸŽ€

Periodic haptic effect that simulates sine waves. 🌊

so like, it's a periodic effect β€” meaning it vibes on a loop β€” and the shape of that loop is a smooth lil sine wave. very soft, very rhythmic, very main character energy 🫢


🌈 AVAILABILITY 🌈

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


πŸ‘‘ SEE ALSO πŸ‘‘


that's the page fr fr. go make something buzz. periodt. πŸ’…βœ¨

signed off with love by the Simple Directmedia Layer girlies, SDL 3.4.18 edition πŸŽ€ (yes that's the source + version, and the date lives up in the header area of the original β€” we kept the whole thing, promise 🫢)

πŸ“¦ where this page comes from