SDL_TouchDeviceType(3type)

✨ SDL_TouchDeviceType ✨

okay so bestie, this is the page for SDL_TouchDeviceType(3type) β€” yes, the manual name is right there, folded in like a little name tag 🫢. It's from the SDL3 DATATYPES section, and it's literally an enum that describes the type of a touch device. No cap. πŸŽ€


πŸ’– NAME πŸ’–

SDL_TouchDeviceType β€” an enum that describes the type of a touch device. That's the whole vibe. Periodt. πŸ’…


✨ SYNOPSIS ✨

Here's the code, copied exactly because we do not mess with code in this group chat:

#include <SDL3/SDL_touch.h>

typedef enum SDL_TouchDeviceType
{
    SDL_TOUCH_DEVICE_INVALID = -1,
    SDL_TOUCH_DEVICE_DIRECT,            /**< touch screen with window-relative coordinates */
    SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE, /**< trackpad with absolute device coordinates */
    SDL_TOUCH_DEVICE_INDIRECT_RELATIVE  /**< trackpad with screen cursor-relative coordinates */
} SDL_TouchDeviceType;

And for the girlies who like a little breakdown, the enum values are giving:

  • SDL_TOUCH_DEVICE_INVALID = -1 β€” the invalid one, the "no ma'am" value πŸ™ˆ
  • SDL_TOUCH_DEVICE_DIRECT β€” touch screen with window-relative coordinates πŸ–₯️
  • SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE β€” trackpad with absolute device coordinates πŸ–±οΈ
  • SDL_TOUCH_DEVICE_INDIRECT_RELATIVE β€” trackpad with screen cursor-relative coordinates πŸ¦‹

🌈 AVAILABILITY 🌈

This enum is available since SDL 3.2.0. So if you're on anything older, it's giving missing, bestie. πŸ’€


kisses from Simple Directmedia Layer πŸ’‹ SDL 3.4.18 stay iconic, bestie ✨

πŸ“¦ where this page comes from