SDL_PEN_TOUCHID(3)
π SDL_PEN_TOUCHID π
okay bestie, gather round, because this one is a tiny little macro and it is lowkey iconic π
β¨ NAME β¨
SDL_PEN_TOUCHID β it's the SDL_TouchID that shows up for touch events that got simulated from pen input. like, when your pen is out here doing pen things but the events are being dressed up as touch events? yeah. this is the ID they wear to the party. ποΈβ‘οΈπ
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_pen.h>
#define SDL_PEN_TOUCHID ((SDL_TouchID)-2)
okay so the whole entire thing is that one #define, and it's literally:
SDL_PEN_TOUCHIDβ expands to((SDL_TouchID)-2). yes, that is a negative two. yes, cast toSDL_TouchID. no, we do not make the rules, we just think it's iconic. π
fr fr, if you're comparing aSDL_TouchIDand wondering "hmm is this a simulated-from-pen situation?", this is the value you check against. the vibes are immaculate, the number is-2. π«Ά
π AVAILABILITY π
this macro has been serving since SDL 3.2.0. so if you're on anything older, sorry bestie, it's not giving what you need. π
and that's the whole page, no notes, periodt. π
this cutie came to you straight from Simple Directmedia Layer, sitting pretty at version SDL 3.4.18 β she's SDL_PEN_TOUCHID(3), she's short, she's sweet, she's -2, and she ate. πβ¨π¦
π¦ 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