VIRTUTECH CONFIDENTIAL Previous - Up - Next
mouse
- Implemented By
-
i8042, sun-mouse
- Description
-
Interface used to send mouse events to a mouse device. The function
mouse_event() takes the destination device as first argument
in obj. The xmicro and ymicro arguments
specified the relative mouse movement in micro-meters. If the mouse
supports a wheel, the wheel movement is supplied in z, as
number of steps up or down. The last argument buttons is a
bit-mask with the state of the mouse buttons. The mapping of mouse
buttons to bits is defined in the file
src/extension/common/keycodes.h.
typedef struct {
void (*mouse_event)(conf_object_t *obj, int xmicro, int ymicro, int z, int buttons);
} mouse_interface_t;
#define MOUSE_INTERFACE "mouse"
VIRTUTECH CONFIDENTIAL Previous - Up - Next