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 β€” a Uint16, and it's the number of simultaneous fingers on this touchpad. multitouch energy fr fr πŸ–οΈβœ¨
  • padding[3] β€” three Uint16s 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 ✨


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