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 πŸ‘€


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