SDL_MouseMotionEvent

Mouse motion event structure (event.motion.*)

\since This struct is available since SDL 3.2.0.

Members

Variables

reserved
Uint32 reserved;
Undocumented in source.
state
SDL_MouseButtonFlags state;

< The current button state

timestamp
Uint64 timestamp;

< In nanoseconds, populated using SDL_GetTicksNS()

type
SDL_EventType type;

< SDL_EVENT_MOUSE_MOTION

which
SDL_MouseID which;

< The mouse instance id in relative mode, SDL_TOUCH_MOUSEID for touch events, or 0

windowID
SDL_WindowID windowID;

< The window with mouse focus, if any

x
float x;

< X coordinate, relative to window

xrel
float xrel;

< The relative motion in the X direction

y
float y;

< Y coordinate, relative to window

yrel
float yrel;

< The relative motion in the Y direction

Meta