#include <SDL_events.h>
Data Fields | |
Uint8 | type |
Uint8 | which |
Uint8 | button |
Uint8 | state |
Uint16 | x |
Uint16 | y |
Uint8 button |
The mouse button index
Uint8 state |
SDL_PRESSED or SDL_RELEASED
Uint8 type |
SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP
Uint8 which |
The mouse device index
Uint16 y |
The X/Y coordinates of the mouse at press time