SDL_GetTouchFingers(3)
π NAME π
SDL_GetTouchFingers β bestie, this is the one that hands you the whole squad of fingers currently touching down on a given touch device. Like, all the active ones. At once. Periodt. β¨
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_touch.h>
SDL_Finger ** SDL_GetTouchFingers(SDL_TouchID touchID, int *count);
π FUNCTION PARAMETERS π
touchIDβ the ID of a touch device. That's the device you're asking about, okay? Gotta know which screen we're vibing with. π«Άcountβ a pointer that gets filled in with the number of fingers returned. And listen, it can beNULLif you literally do not care how many there are. No pressure. π
β¨ RETURN VALUE β¨
It returns a NULL terminated array of SDL_Finger pointers β or NULL on failure. If it fails, no cap, go call SDL_GetError() for the deets on what went wrong. π
Heads up bestie: this is a single allocation, and you gotta free it with SDL_free() when you don't need it anymore. Don't just leave it hanging, that's not the vibe. π§
π¦ AVAILABILITY π¦
This function is available since SDL 3.2.0. So if you're on anything older, it's giving... nothing. Upgrade, queen. π
Simple Directmedia Layer π SDL 3.4.18 π SDL_GetTouchFingers(3) β that's the whole page, mwah π thanks for reading, now go touch some (virtual) grass with your fingers array πβ¨
π¦ 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