SDL_HINT_PEN_TOUCH_EVENTS(3)

πŸ’– NAME πŸ’–

SDL_HINT_PEN_TOUCH_EVENTS β€” bestie, this is the variable that decides whether your pen events are gonna spawn synthetic touch events too. Like, do they get a little touch-event bestie of their own or not. That's the whole vibe. πŸ–ŠοΈβœ¨


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

#define SDL_HINT_PEN_TOUCH_EVENTS "SDL_PEN_TOUCH_EVENTS"

Like yes, it's giving header, it's giving #define, it's giving exactly what you'd expect. πŸ’…


✨ DESCRIPTION ✨

okay so here's the tea 🍡 β€” this variable can be set to the following values:

  • "0" β€” pen events will not generate touch events. nope. not happening. the pen stays a pen. 🚫
  • "1" β€” pen events will generate touch events. (this is the default, so if you do nothing, this is what you get 🫢)

This hint can be set anytime. No waiting around, no "only before init" drama. Anytime. periodt. πŸ‘‘


πŸ¦‹ AVAILABILITY πŸ¦‹

This hint has been around since SDL 3.2.0. She's not new here, she's an icon. πŸ’œ


and that's the whole page, bestie!! mwah πŸ’‹ This lil slice of documentation comes to you straight from Simple Directmedia Layer, running version SDL 3.4.18. slay, stay hydrated, go set your hints responsibly πŸŒˆπŸŽ€πŸ“

πŸ“¦ where this page comes from