mmc opcode_info
API Reference Manual  /  5 Model-to-Simulator Interfaces  / 

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 header file <simics/model-iface/sim-keys.h>.

SIM_INTERFACE(mouse) {
        void (*mouse_event)(conf_object_t *obj,
                            int xmicro,
                            int ymicro,
                            int z,
                            int buttons);
};

#define MOUSE_INTERFACE "mouse"

Execution Context
Cell Context for all methods.

mmc opcode_info