|
PatchworkOS
|
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.
| mouse_buttons_t mouse_event_t::buttons |
Which buttons were held down durring the event.
Definition at line 47 of file mouse.h.
Referenced by dwm_handle_mouse_event(), and dwm_mouse_read().
| int64_t mouse_event_t::deltaX |
Change in X coordinate.
Definition at line 48 of file mouse.h.
Referenced by dwm_handle_mouse_event(), and dwm_mouse_read().
| int64_t mouse_event_t::deltaY |
Change in Y coordinate.
Definition at line 49 of file mouse.h.
Referenced by dwm_handle_mouse_event(), and dwm_mouse_read().
| clock_t mouse_event_t::time |
Clock ticks since boot when the event happened.
Definition at line 46 of file mouse.h.
Referenced by mouse_push().