#include <SDL_events.h>
Data Fields | |
| Uint8 | type |
| Uint8 | which |
| Uint8 | state |
| Uint16 | x |
| Uint16 | y |
| Sint16 | xrel |
| Sint16 | yrel |
| Uint8 state |
The current button state
| Uint8 type |
SDL_MOUSEMOTION
| Uint8 which |
The mouse device index
| Sint16 xrel |
The relative motion in the X direction
| Uint16 y |
The X/Y coordinates of the mouse
| Sint16 yrel |
The relative motion in the Y direction
1.5.8