Public Member Functions | |
void | putMouseEvent (in long dx, in long dy, in long dz, in long buttonState) |
Initiates a mouse event using relative pointer movements along x and y axis. | |
void | putMouseEventAbsolute (in long x, in long y, in long dz, in long buttonState) |
Positions the mouse pointer using absolute x and y coordinates. | |
Public Attributes | |
readonly attribute boolean | absoluteSupported |
Whether the guest OS supports absolute mouse pointer positioning or not. |
Used in IConsole::mouse.
Through this interface, the virtual machine's virtual mouse can be controlled.
{FD443EC1-0006-4F5B-9282-D72760A66916}
void IMouse::putMouseEvent | ( | in long | dx, | |
in long | dy, | |||
in long | dz, | |||
in long | buttonState | |||
) |
Initiates a mouse event using relative pointer movements along x and y axis.
dx | Amout of pixels the mouse should move to the right. Negative values move the mouse to the left. | |||||||
dy | Amout of pixels the mouse should move downwards. Negative values move the mouse upwards. | |||||||
dz | Amount of mouse wheel moves. Positive values describe clockwize wheel rotations, negative values describe counterclockwise rotations. | |||||||
buttonState | The current state of mouse buttons. Every bit represents a mouse button as follows:
1 means the corresponding button is pressed. otherwise it is released. |
void IMouse::putMouseEventAbsolute | ( | in long | x, | |
in long | y, | |||
in long | dz, | |||
in long | buttonState | |||
) |
Positions the mouse pointer using absolute x and y coordinates.
These coordinates are expressed in pixels and start from [1,1]
which corresponds to the top left corner of the virtual display.
x | X coordinate of the pointer in pixels, starting from 1 . | |||||||
y | Y coordinate of the pointer in pixels, starting from 1 . | |||||||
dz | Amout of mouse wheel moves. Positive values describe clockwize wheel rotations, negative values describe counterclockwise rotations. | |||||||
buttonState | The current state of mouse buttons. Every bit represents a mouse button as follows:
1 means the corresponding button is pressed. otherwise it is released. |
readonly attribute boolean IMouse::absoluteSupported |
Whether the guest OS supports absolute mouse pointer positioning or not.