SDL_PenAxisEvent

Pressure-sensitive pen pressure / angle event structure (event.paxis.*)

You might get some of these events even if the pen isn't touching the tablet.

\since This struct is available since SDL 3.2.0.

Members

Variables

axis
SDL_PenAxis axis;

< Axis that has changed

pen_state
SDL_PenInputFlags pen_state;

< Complete pen input state at time of event

reserved
Uint32 reserved;
Undocumented in source.
timestamp
Uint64 timestamp;

< In nanoseconds, populated using SDL_GetTicksNS()

type
SDL_EventType type;

< SDL_EVENT_PEN_AXIS

value
float value;

< New value of axis

which
SDL_PenID which;

< The pen instance id

windowID
SDL_WindowID windowID;

< The window with pen focus, if any

x
float x;

< X coordinate, relative to window

y
float y;

< Y coordinate, relative to window

Meta