Mouse
Use the Mouse to control the cursor.
Interface
class Mouse
static Point location()
static boolean move(Point point)
end
Static Methods
location()
returns the cursor positionmove(Point point)
moves the cursor to a given position, returnstrue
if successful
Events
See Events for a list of available events for Mouse.
Example
// Get the cursor location
const location = Mouse.location();
console.log('Location:', location.x, location.y); // -> 'Location: 2023 301'
// Move the cursor to origo
Mouse.move({ x: 0, y: 0 });