PatchworkOS
Loading...
Searching...
No Matches
mouse_event_t Struct Reference

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.
 

Detailed Description

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.

Definition at line 44 of file mouse.h.

Field Documentation

◆ buttons

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().

◆ deltaX

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().

◆ deltaY

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().

◆ time

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().


The documentation for this struct was generated from the following file: