SDL_Finger(3type)
π SDL_Finger β a whole lil datatype, bestie π
okay so this is a page from the SDL3 DATATYPES manual, and we're talking about SDL_Finger. yeah. the multitouch one. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
SDL_Finger β all the tea about a single finger in a multitouch event. just one finger. one. π«΅
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_touch.h>
typedef struct SDL_Finger
{
SDL_FingerID id; /**< the finger ID */
float x; /**< the x-axis location of the touch event, normalized (0...1) */
float y; /**< the y-axis location of the touch event, normalized (0...1) */
float pressure; /**< the quantity of pressure applied, normalized (0...1) */
} SDL_Finger;
like look at her. four fields. absolutely iconic. π
π¦ DESCRIPTION π¦
so the vibe is this: every touch event is literally a collection of fingers that are all touching the touch device at the same time β which means a "touch" can lowkey be a "multitouch," in reality. yes bestie, both things are true at once, the way that works is exactly like that. π
and this struct? this struct reports the deets of the specific fingers. the individual ones. the main characters. π
β AVAILABILITY β
this struct has been available since SDL 3.2.0. she's not new new, she's established. π
π SEE ALSO π
SDL_GetTouchFingers(3)β go get those fingers fr fr
and that's the whole page, no notes. π
cute lil sign-off moment: this came to you from Simple Directmedia Layer, SDL 3.4.18, SDL_Finger(3type). mwah. take care of her πβ¨ππ¦πΈπ
π«Ά
π¦ 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