GlobalMouse
import {GlobalMouse} from 'cabbie-sync';
Global mouse object handling global mouse commands
Methods
buttonDown(button?): void
- button
- MouseButton
Click and hold the any mouse button at the current location of the mouse cursor
buttonDownAt(xOffset, yOffset, button?): void
- xOffset
- number
- yOffset
- number
- button
- MouseButton
Click and hold the any mouse button relative to the current location of the mouse cursor
buttonUp(button?): void
- button
- MouseButton
Releases the mouse button previously held at the current location of the mouse cursor
buttonUpAt(xOffset, yOffset, button?): void
- xOffset
- number
- yOffset
- number
- button
- MouseButton
Releases the mouse button previously held at the current location of the mouse cursor
click(button?): void
- button
- MouseButton
Click any mouse button at the current location of the mouse cursor
clickAt(xOffset, yOffset, button?): void
- xOffset
- number
- yOffset
- number
- button
- MouseButton
Click any mouse button at an offset relative to the current location of the mouse cursor
doubleClick(): void
Double-clicks at the current location of the mouse cursor
moveTo(xOffset, yOffset): void
- xOffset
- number
- yOffset
- number
Move the mouse by an offset relative to the current mouse cursor position