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
- 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