SDL_TouchID(3type)

✨ NAME ✨

SDL_TouchID β€” bestie, it's literally just a unique ID for a touch device πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_touch.h>

typedef Uint64 SDL_TouchID;

🌸 DESCRIPTION 🌸

okay so picture this: every touch device gets its own lil name tag, and that name tag is an SDL_TouchID. It stays valid for the whole time the device is connected to the system, and here's the iconic part β€” it is never reused for the lifetime of the application. like ever. no recycling, no take-backs, no "oops someone else has your number now." each ID is a one-time main character πŸ’–

and the value 0? that's an invalid ID. zero is not a real touch device, it's the void, it's nothing, do not pass go πŸ™ˆ


πŸ‘‘ AVAILABILITY πŸ‘‘

this datatype has been serving looks since SDL 3.2.0 ✨


mwah, that's the whole page, no cap 🫢 this lil datatype ships with Simple Directmedia Layer, SDL 3.4.18, and yes it's giving SDL_TouchID(3type) energy from the SDL3 DATATYPES collection. go forth and slay your touch IDs, bestie πŸ’…πŸŽ€

πŸ“¦ where this page comes from