Pressure-sensitive pen touched or stopped touching surface (event.ptip.*)
Defined in <SDL3/SDL_events.h>
typedef struct SDL_PenTipEvent
{/**< ::SDL_EVENT_PEN_DOWN or ::SDL_EVENT_PEN_UP */
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; /**< ::SDL_PEN_TIP_INK when using a regular pen tip, or ::SDL_PEN_TIP_ERASER if the pen is being used as an eraser (e.g., flipped to use the eraser tip) */
Uint8 tip; /**< ::SDL_PRESSED on ::SDL_EVENT_PEN_DOWN and ::SDL_RELEASED on ::SDL_EVENT_PEN_UP */
Uint8 state; /**< 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_PenTipEvent;
This struct is available since SDL 3.0.0.
CategoryAPI, CategoryAPIStruct