SDL_GetTouchDeviceType(3)
π SDL_GetTouchDeviceType
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, and today's main character is SDL_GetTouchDeviceType β¨ she's short, she's sweet, and she does exactly one thing: she tells you what kind of touch device you're dealing with. no cap. π«Ά
πΈ NAME πΈ
SDL_GetTouchDeviceType β get the type of the given touch device. that's it, that's the whole job, and she ate. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_touch.h>
SDL_TouchDeviceType SDL_GetTouchDeviceType(SDL_TouchID touchID);
so you pull in SDL_touch.h, you hand her a touchID, and she hands you back an SDL_TouchDeviceType. literally a whole conversation in one line. π
π FUNCTION PARAMETERS π
touchIDβ the ID of a touch device. that's the one and only thing she needs from you. give her the ID, bestie. it's giving "just one number and we're done here." π¦
β RETURN VALUE β
Returns touch device type. π« like, the actual type of the device. that's the tea, that's the whole vibe. π
π§ AVAILABILITY π§
This function is available since SDL 3.2.0. so if you're on anything older than that... yeah no, she's not there yet. upgrade era only. π₯
ngl there's not a single warning, bug note, or scary caveat on this page β she's a sweetheart and she plays nice. πΈ
and that's the whole page, bestie! this little cutie comes to you courtesy of Simple Directmedia Layer in SDL 3.4.18, printed all official-like under the SDL_GetTouchDeviceType(3) name. stay slay, go touch some devices, and remember: type check first, vibes always. ππβ¨
π¦ 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