SDL 3.0
|
Mouse motion event structure (event.motion.*) More...
#include <SDL_events.h>
Data Fields | |
Uint32 | type |
Uint64 | timestamp |
SDL_WindowID | windowID |
SDL_MouseID | which |
Uint32 | state |
float | x |
float | y |
float | xrel |
float | yrel |
Mouse motion event structure (event.motion.*)
Definition at line 290 of file SDL_events.h.
Uint32 SDL_MouseMotionEvent::state |
The current button state
Definition at line 296 of file SDL_events.h.
Uint64 SDL_MouseMotionEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 293 of file SDL_events.h.
Uint32 SDL_MouseMotionEvent::type |
Definition at line 292 of file SDL_events.h.
SDL_MouseID SDL_MouseMotionEvent::which |
The mouse instance id, or SDL_TOUCH_MOUSEID
Definition at line 295 of file SDL_events.h.
SDL_WindowID SDL_MouseMotionEvent::windowID |
The window with mouse focus, if any
Definition at line 294 of file SDL_events.h.
float SDL_MouseMotionEvent::x |
X coordinate, relative to window
Definition at line 297 of file SDL_events.h.
float SDL_MouseMotionEvent::xrel |
The relative motion in the X direction
Definition at line 299 of file SDL_events.h.
float SDL_MouseMotionEvent::y |
Y coordinate, relative to window
Definition at line 298 of file SDL_events.h.
float SDL_MouseMotionEvent::yrel |
The relative motion in the Y direction
Definition at line 300 of file SDL_events.h.