Pressure-sensitive pen pressure / angle event structure (event.paxis.*)
Defined in <SDL3/SDL_events.h>
typedef struct SDL_PenAxisEvent
{/**< SDL_EVENT_PEN_AXIS */
SDL_EventType type;
Uint32 reserved;/**< In nanoseconds, populated using SDL_GetTicksNS() */
Uint64 timestamp; /**< The window with pen focus, if any */
SDL_WindowID windowID; /**< The pen instance id */
SDL_PenID which; /**< Complete pen input state at time of event */
SDL_PenInputFlags pen_state; float x; /**< X coordinate, relative to window */
float y; /**< Y coordinate, relative to window */
/**< Axis that has changed */
SDL_PenAxis axis; float value; /**< New value of axis */
} SDL_PenAxisEvent;
You might get some of these events even if the pen isn't touching the tablet.
This struct is available since SDL 3.1.3.