|
SDL 3.0
|
#include <SDL_events.h>
Data Fields | |
| SDL_EventType | type |
| Uint32 | reserved |
| Uint64 | timestamp |
| SDL_WindowID | windowID |
| SDL_MouseID | which |
| Uint8 | button |
| bool | down |
| Uint8 | clicks |
| Uint8 | padding |
| float | x |
| float | y |
Mouse button event structure (event.button.*)
Definition at line 472 of file SDL_events.h.
| Uint8 SDL_MouseButtonEvent::button |
The mouse button index
Definition at line 479 of file SDL_events.h.
| Uint8 SDL_MouseButtonEvent::clicks |
1 for single-click, 2 for double-click, etc.
Definition at line 481 of file SDL_events.h.
| bool SDL_MouseButtonEvent::down |
true if the button is pressed
Definition at line 480 of file SDL_events.h.
| Uint8 SDL_MouseButtonEvent::padding |
Definition at line 482 of file SDL_events.h.
| Uint32 SDL_MouseButtonEvent::reserved |
Definition at line 475 of file SDL_events.h.
| Uint64 SDL_MouseButtonEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 476 of file SDL_events.h.
| SDL_EventType SDL_MouseButtonEvent::type |
SDL_EVENT_MOUSE_BUTTON_DOWN or SDL_EVENT_MOUSE_BUTTON_UP
Definition at line 474 of file SDL_events.h.
| SDL_MouseID SDL_MouseButtonEvent::which |
The mouse instance id in relative mode, SDL_TOUCH_MOUSEID for touch events, or 0
Definition at line 478 of file SDL_events.h.
| SDL_WindowID SDL_MouseButtonEvent::windowID |
The window with mouse focus, if any
Definition at line 477 of file SDL_events.h.
| float SDL_MouseButtonEvent::x |
X coordinate, relative to window
Definition at line 483 of file SDL_events.h.
| float SDL_MouseButtonEvent::y |
Y coordinate, relative to window
Definition at line 484 of file SDL_events.h.