Mouse motion event structure (event.motion.*)
Defined in [SDL_events.h](https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_events.h), but apps should _only_ `#include "SDL.h"`!
typedef struct SDL_MouseMotionEvent
{/**< ::SDL_MOUSEMOTION */
Uint32 type; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 timestamp; /**< The window with mouse focus, if any */
Uint32 windowID; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
Uint32 which; /**< The current button state */
Uint32 state; /**< X coordinate, relative to window */
Sint32 x; /**< Y coordinate, relative to window */
Sint32 y; /**< The relative motion in the X direction */
Sint32 xrel; /**< The relative motion in the Y direction */
Sint32 yrel; } SDL_MouseMotionEvent;
Uint32 |
type |
the event type; SDL_MOUSEMOTION |
Uint32 |
timestamp |
timestamp of the event |
Uint32 |
windowID |
the window with mouse focus, if any |
Uint32 |
which |
the mouse instance id, or SDL_TOUCH_MOUSEID; see Remarks for details |
Uint32 |
state |
the state of the button; see Remarks for details |
Sint32 |
x |
X coordinate, relative to window |
Sint32 |
y |
Y coordinate, relative to window |
Sint32 |
xrel |
relative motion in the X direction |
Sint32 |
yrel |
relative motion in the Y direction |
CategoryAPI, CategoryAPIStruct, CategoryStruct, CategoryEvents