|
SDL 3.0
|
#include <SDL_events.h>
Data Fields | |
| SDL_EventType | type |
| Uint32 | reserved |
| Uint64 | timestamp |
| SDL_WindowID | windowID |
| SDL_MouseID | which |
| float | x |
| float | y |
| SDL_MouseWheelDirection | direction |
| float | mouse_x |
| float | mouse_y |
| Sint32 | integer_x |
| Sint32 | integer_y |
Mouse wheel event structure (event.wheel.*)
Definition at line 492 of file SDL_events.h.
| SDL_MouseWheelDirection SDL_MouseWheelEvent::direction |
Set to one of the SDL_MOUSEWHEEL_* defines. When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back
Definition at line 501 of file SDL_events.h.
| Sint32 SDL_MouseWheelEvent::integer_x |
The amount scrolled horizontally, accumulated to whole scroll "ticks" (added in 3.2.12)
Definition at line 504 of file SDL_events.h.
| Sint32 SDL_MouseWheelEvent::integer_y |
The amount scrolled vertically, accumulated to whole scroll "ticks" (added in 3.2.12)
Definition at line 505 of file SDL_events.h.
| float SDL_MouseWheelEvent::mouse_x |
X coordinate, relative to window
Definition at line 502 of file SDL_events.h.
| float SDL_MouseWheelEvent::mouse_y |
Y coordinate, relative to window
Definition at line 503 of file SDL_events.h.
| Uint32 SDL_MouseWheelEvent::reserved |
Definition at line 495 of file SDL_events.h.
| Uint64 SDL_MouseWheelEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 496 of file SDL_events.h.
| SDL_EventType SDL_MouseWheelEvent::type |
SDL_EVENT_MOUSE_WHEEL
Definition at line 494 of file SDL_events.h.
| SDL_MouseID SDL_MouseWheelEvent::which |
The mouse instance id in relative mode or 0
Definition at line 498 of file SDL_events.h.
| SDL_WindowID SDL_MouseWheelEvent::windowID |
The window with mouse focus, if any
Definition at line 497 of file SDL_events.h.
| float SDL_MouseWheelEvent::x |
The amount scrolled horizontally, positive to the right and negative to the left
Definition at line 499 of file SDL_events.h.
| float SDL_MouseWheelEvent::y |
The amount scrolled vertically, positive away from the user and negative toward the user
Definition at line 500 of file SDL_events.h.