|
PatchworkOS
c9fea19
A non-POSIX operating system.
|
Mouse event structure. More...
#include <mouse.h>
Data Fields | |
| clock_t | time |
| Clock ticks since boot when the event happened. | |
| mouse_buttons_t | buttons |
| Which buttons were held down durring the event. | |
| int64_t | deltaX |
| Change in X coordinate. | |
| int64_t | deltaY |
| Change in Y coordinate. | |
Mouse event structure.
The mouse_event_t structure can be read from mouse files, for example /dev/mouse/ps2. Mouse files will block until a mouse event happens, mouse files will never return partial events.
| clock_t mouse_event_t::time |
| mouse_buttons_t mouse_event_t::buttons |