Mouse

The Mouse object controls the mouse cursor and can simulates the click buttons.

Functions

CancelCaptureStops the current capture started with Mouse.Capture, then calls the Mouse.OnCancelCapture event.
CaptureAllows to capture the mouse events until the button is released.
DoLeftClickSimulates a left click mouse button.
DoLeftDoubleClickSimulates a left double click mouse button.
DoLeftDownSimulates a left click mouse button.
DoLeftUpSimulates a left click mouse button.
DoMiddleClickSimulates a middle click mouse button.
DoMiddleDoubleClickSimulates a middle double click mouse button.
DoMiddleDownSimulates a middle click mouse button.
DoMiddleUpSimulates a middle click mouse button.
DoRightClickSimulates a right click mouse button.
DoRightDoubleClickSimulates a right double click mouse button.
DoRightDownSimulates a right click mouse button.
DoRightUpSimulates a right click mouse button.
GetRetrieves the position of the mouse cursor in pixels.
GetXRetrieves the horizontal position of the mouse cursor in pixels.
GetYRetrieves the vertical position of the mouse cursor in pixels.
IsLeftButtonTests if the left button is down.
IsMiddleButtonTests if the middle button is down.
IsRightButtonTests if the right button is down.
SetChanges the position of the mouse cursor.
ShowCursorShows or hides the mouse cursor.

Events

OnCancelCaptureIs called after Mouse.Capture when the capture is cancelled with the Mouse.CancelCapture function.
OnReleaseCaptureIs called after Mouse.Capture when the button is released.
OnUpdateCaptureIs called after Mouse.Capture when the cursor is moving until the button is released.

Constants

The Mouse object has no constants.

Example

SECCIA Documentation - Copyright © 2001-2009 Sylvain Seccia