SDL 3.0
|
#include <SDL_events.h>
Data Fields | |
SDL_EventType | type |
Uint32 | reserved |
Uint64 | timestamp |
SDL_WindowID | windowID |
SDL_MouseID | which |
SDL_MouseButtonFlags | state |
float | x |
float | y |
float | xrel |
float | yrel |
Mouse motion event structure (event.motion.*)
Definition at line 444 of file SDL_events.h.
Uint32 SDL_MouseMotionEvent::reserved |
Definition at line 447 of file SDL_events.h.
SDL_MouseButtonFlags SDL_MouseMotionEvent::state |
The current button state
Definition at line 451 of file SDL_events.h.
Uint64 SDL_MouseMotionEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 448 of file SDL_events.h.
SDL_EventType SDL_MouseMotionEvent::type |
SDL_EVENT_MOUSE_MOTION
Definition at line 446 of file SDL_events.h.
SDL_MouseID SDL_MouseMotionEvent::which |
The mouse instance id in relative mode, SDL_TOUCH_MOUSEID for touch events, or 0
Definition at line 450 of file SDL_events.h.
SDL_WindowID SDL_MouseMotionEvent::windowID |
The window with mouse focus, if any
Definition at line 449 of file SDL_events.h.
float SDL_MouseMotionEvent::x |
X coordinate, relative to window
Definition at line 452 of file SDL_events.h.
float SDL_MouseMotionEvent::xrel |
The relative motion in the X direction
Definition at line 454 of file SDL_events.h.
float SDL_MouseMotionEvent::y |
Y coordinate, relative to window
Definition at line 453 of file SDL_events.h.
float SDL_MouseMotionEvent::yrel |
The relative motion in the Y direction
Definition at line 455 of file SDL_events.h.