SDL_GetTouchDeviceName(3)
π SDL_GetTouchDeviceName π
okay bestie, so this one is a whole little function from the SDL3 touch squad, and it's literally just "hey, what's this touch thing called?" π«Ά
β¨ NAME β¨
SDL_GetTouchDeviceName β get the touch device name as reported from the driver. no cap, that's the whole job. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_touch.h>
const char * SDL_GetTouchDeviceName(SDL_TouchID touchID);
like yes, that's the include, and yes, that's the exact signature. copy it exactly, don't get creative π
π FUNCTION PARAMETERS π
touchIDβ the touch device instance ID. that's it, that's the only thing you hand over. it's giving "one (1) whole argument, and she's an ID" π
π¦ RETURN VALUE π¦
so she returns the touch device name β the actual name string, straight from the driver, as-is. π
but if it doesn't work out? you get NULL. NULL!! and not in a cute way. π
if you getNULLback, that's a failure, bestie β go callSDL_GetError()for more information before you spiral. fr fr, that's what it's there for. π₯
β AVAILABILITY β
this function is available since SDL 3.2.0. so if you're on something older than that, she's simply not there yet, sorry babe π§
okay so that's the whole page, every last crumb of it, nothing skipped, nothing invented π
this lil' cutie lives in the Simple Directmedia Layer world, version SDL 3.4.18 β that's the source and the version, straight from the footer, mwah π β¨ππ
later bestie, go read your driver names in peace π¦π
π¦ 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