SDL_HAPTIC_SQUARE(3)

πŸ’– SDL_HAPTIC_SQUARE πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we're talking about SDL_HAPTIC_SQUARE and honestly? she's a whole vibe. ✨


🌸 NAME 🌸

SDL_HAPTIC_SQUARE β€” the square wave effect, and yes she IS supported, no cap. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_haptic.h>

#define SDL_HAPTIC_SQUARE       (1u<<2)

like, that's it. that's the whole thing. go off, queen. πŸ’…


🌈 DESCRIPTION 🌈

So SDL_HAPTIC_SQUARE is a periodic haptic effect that simulates square waves. 🌊

That's the tea. It's giving buzzy, it's giving rhythmic, it's giving your controller going brrrrr on a schedule. periodt. πŸ”₯


⭐ AVAILABILITY ⭐

This macro has been out here living her best life since SDL 3.2.0. iconic behavior, truly. πŸ‘‘

ngl if you're on anything older than that, she's simply not there yet. upgrade ur SDL bestie. 😭

🫢 SEE ALSO 🫢


and that's the page!! tysm for reading, mwah πŸ’‹ this has been the Simple Directmedia Layer era, running on SDL 3.4.18 β€” slay, bye bestie!! πŸ¦‹βœ¨πŸŽ€

πŸ“¦ where this page comes from