SDL_Virtua...ouchpadDesc(3type)
π SDL_Virtua...ouchpadDesc(3type) π
okay bestie, welcome to the SDL3 DATATYPES corner of the manual, and today's main character is SDL_VirtualJoystickTouchpadDesc β literally the struct that describes a virtual joystick touchpad. that's it. that's the whole vibe. π«Ά
β¨ NAME β¨
SDL_VirtualJoystickTouchpadDesc β the structure that describes a virtual joystick touchpad. no cap. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_joystick.h>
typedef struct SDL_VirtualJoystickTouchpadDesc
{
Uint16 nfingers; /**< the number of simultaneous fingers on this touchpad */
Uint16 padding[3];
} SDL_VirtualJoystickTouchpadDesc;
so the way this works is:
nfingersβ aUint16, and it's the number of simultaneous fingers on this touchpad. multitouch energy fr fr ποΈβ¨padding[3]β threeUint16s of straight-up padding. it's giving "just here to keep things aligned", and honestly? iconic. π
β¨ AVAILABILITY β¨
this struct has been available since SDL 3.2.0. so if you're on anything older, sorry bestie, she's not there yet. π
β¨ SEE ALSO β¨
SDL_VirtualJoystickDesc(3type)β go read that one next, iykyk π¦
and that's the whole page, no crumbs left, we ate. πβ¨
mwah π β brought to you by the Simple Directmedia Layer girlies, SDL 3.4.18 edition, and this one's dated right there in the footer, so go check it if you need the exact timestamp. bye bestie, go build something cute! ππ
π¦ 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