Mouse

moveTo()

Mouse.moveTo, moveTo

// SYNTAX
Mouse.moveTo(x, y);

Moves the cursor to an absolute position. (0, 0) position is the top left corner of the screen. By default both X and Y axes span from 0 to 32767.

The default range [0, 32767] can be mapped to actual screen resolution by calling screenSize(). After the call to screenSize(), moveTo() will accept screen coordinates and automatically map them to the default range.

Parameters:

  • x: X coordinate - uint16_t [0, 32767] (default)
  • y: Y coordinate - uint16_t [0, 32767] (default)

moveTo() does not return anything.