SDL standard library
SDL_MouseButtonEvent Struct Reference
Mouse button event structure (event.button. More...
#include <SDL_events.h>
Data Fields | |
Uint32 | type |
SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP | |
Uint32 | windowID |
The window with mouse focus, if any. | |
Uint32 | which |
The mouse instance id, or SDL_TOUCH_MOUSEID. | |
Uint8 | button |
The mouse button index. | |
Uint8 | state |
SDL_PRESSED or SDL_RELEASED | |
Uint8 | clicks |
1 for single-click, 2 for double-click, etc. | |
Sint32 | x |
X coordinate, relative to window. | |
Sint32 | y |
Y coordinate, relative to window. |
Detailed Description
Mouse button event structure (event.button.
*)
Definition at line 237 of file SDL_events.h.
Field Documentation
The mouse button index.
Definition at line 243 of file SDL_events.h.
1 for single-click, 2 for double-click, etc.
Definition at line 245 of file SDL_events.h.
SDL_PRESSED or SDL_RELEASED
Definition at line 244 of file SDL_events.h.
SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP
Definition at line 239 of file SDL_events.h.
The mouse instance id, or SDL_TOUCH_MOUSEID.
Definition at line 242 of file SDL_events.h.
The window with mouse focus, if any.
Definition at line 241 of file SDL_events.h.
X coordinate, relative to window.
Definition at line 247 of file SDL_events.h.
Y coordinate, relative to window.
Definition at line 248 of file SDL_events.h.
Generated on Tue Jul 12 2022 13:56:26 by 1.7.2