sparkfun Pro Micro Hook-Up Manual page 20

Table of Contents

Advertisement

Mouse.move(x, y, wheel)
certain number of pixels along either the x, y and/or wheel axis. Each
variable can be any value between -128 and +127, with negative
numbers moving the cursor down/left, positive numbers move the
right/up.
sends a down-click on a button or buttons. The
Mouse.press(b)
button(s) will remain "pressed" until you call
variable is a single byte, each bit of which represents a different
b
button. You can set it equal to any of the following, or OR (|) them
together to click multiple buttons at once:
MOUSE_LEFT
MOUSE_RIGHT
MOUSE_MIDDLE
MOUSE_ALL
sends a down-click (press) followed immediately by
Mouse.click(b)
an up-click (release) on button(s)
and right buttons simultaneously, try this:
Mouse.click(MOUSE_LEFT | MOUSE_RIGHT); // Press and release the left and right mouse buttons
Here's some example code to show off these functions:
tells the computer to move the mouse a
- Left Mouse button
- Right Mouse button
- Middle mouse button
- All three mouse buttons
. For example, to click the left
b
. The
Mouse.release(b)
Page 20 of 27

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Pro Micro and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Fio v3Dev-12640Dev-11520

Table of Contents