SDL Wiki
(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)

SDL_HINT_PEN_NOT_MOUSE

A variable controlling whether to treat pen movement as separate from mouse movement.

Header File

Defined in <SDL3/SDL_hints.h>

Syntax

#define SDL_HINT_PEN_NOT_MOUSE    "SDL_PEN_NOT_MOUSE"

Remarks

By default, pens report both SDL_MouseMotionEvent and SDL_PenMotionEvent updates (analogously for button presses). This hint allows decoupling mouse and pen updates.

This variable toggles between the following behaviour:

This hint can be set anytime.

Version

This hint is available since SDL 3.0.0.


CategoryAPI, CategoryAPIMacro


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.