SDL_PEN_MOUSEID(3)

πŸ’– SDL_PEN_MOUSEID(3) πŸ’–

okay so bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_PEN_MOUSEID πŸ–ŠοΈβœ¨


🌸 NAME 🌸

SDL_PEN_MOUSEID β€” the SDL_MouseID for mouse events simulated with pen input πŸ–±οΈπŸ–ŠοΈ

like, when your pen is out here pretending to be a mouse, this is the ID it uses. no cap.


✨ SYNOPSIS ✨

#include <SDL3/SDL_pen.h>

#define SDL_PEN_MOUSEID ((SDL_MouseID)-2)
fr fr, that's the whole thing. a macro. iconic behavior honestly πŸ’…

πŸ¦‹ AVAILABILITY πŸ¦‹

This macro is available since SDL 3.2.0. so if you're on anything older, it's giving "not yet, babe" 😭


and that's the vibe check, bestie β€” short, sweet, and fully slaying. go forth and handle those pen-simulated mouse events with main character energy πŸ‘‘

this page came to you from the Simple Directmedia Layer, version SDL 3.4.18, and yes the date is giving classic manpage footer energy πŸŽ€ stay hydrated, read your headers, and remember: SDL_PEN_MOUSEID is lowkey just ((SDL_MouseID)-2) and it's obsessed with being exactly that πŸ’–

πŸ“¦ where this page comes from