Mouse

move()

// PROTOTYPE
void move(int16_t x, int16_t y, int8_t wheel = 0);
// SYNTAX
Mouse.move(x, y);
Mouse.move(x, y, wheel);

Moves the cursor relative to the current position.

Parameters:

  • x: amount to move along the X axis - int16_t [-32767, 32767]
  • y: amount to move along the Y axis - int16_t [-32767, 32767]
  • wheel: amount to move the scroll wheel - int8_t [-127, 127]

move() does not return anything.