Pressure-sensitive pen motion / pressure / angle event structure (event.pmotion.*)
Defined in <SDL3/SDL_events.h>
typedef struct SDL_PenMotionEvent
{/**< ::SDL_EVENT_PEN_MOTION */
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;
Uint8 padding1;
Uint8 padding2;/**< Pen button masks (where SDL_BUTTON(1) is the first button, SDL_BUTTON(2) is the second button etc.), ::SDL_PEN_DOWN_MASK is set if the pen is touching the surface, and ::SDL_PEN_ERASER_MASK is set if the pen is (used as) an eraser. */
Uint16 pen_state; float x; /**< X coordinate, relative to window */
float y; /**< Y coordinate, relative to window */
float axes[SDL_PEN_NUM_AXES]; /**< Pen axes such as pressure and tilt (ordered as per ::SDL_PenAxis) */
} SDL_PenMotionEvent;
This struct is available since SDL 3.0.0.
CategoryAPI, CategoryAPIStruct