This object allows you to simulate mouse actions.
Constructor function.
var myObject = new Mouse();
Returns the current position of the cursor.
myObject.position();
Moves the mouse cursor.
myObject.move(position);
Returns true if button is pressed.
myObject.isButtonPressed(button);
Presses a mouse button or the left button if no button is specified.
myObject.press(button);
myObject.press();
Releases a mouse button or the left button if no button is specified.
myObject.release(button);
myObject.release();
Presses and releases a mouse button or the left button if no button is specified.
myObject.click(button);
myObject.click();
Emulates a mouse wheel movement.
myObject.wheel(intensity);
myObject.wheel();
Mouse buttons.