SDL_HAPTIC_SAWTOOTHUP(3)
β¨ NAME β¨
SDL_HAPTIC_SAWTOOTHUP β the sawtoothup wave effect that your controller can, in fact, support π
(this is a page from the SDL3 FUNCTIONS manual, bestie, and yes we're doing this together π«Ά)
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_haptic.h>
#define SDL_HAPTIC_SAWTOOTHUP (1u<<4)
okay so it's literally just a macro, that's the whole thing, no cap β¨
π¦ DESCRIPTION π¦
It's a periodic haptic effect β like, the kind that loops and loops and loops β that simulates saw tooth up waves π
Picture a wave that ramps up, then drops off a cliff, then ramps up again, forever. That's the vibe. It's giving "graph that goes up then immediately betrays you" ππ
β AVAILABILITY β
This macro has been around since SDL 3.2.0, so if you're on anything older... bestie, no. Upgrade π
π SEE ALSO π
SDL_HapticPeriodic(3type)β the main character this macro hangs out with, go read that one too π
and that's the whole page, you ate that π
sending you off with the receipts: this was Simple Directmedia Layer, SDL 3.4.18, dated SDL_HAPTIC_SAWTOOTHUP(3) β mwah, periodt π β¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms