Skip to content

Commit

Permalink
Add comments to mouse buttons example
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Mar 13, 2018
1 parent 9298f06 commit cf1dbf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions USB_Mouse/Buttons/Buttons.ino
Expand Up @@ -71,6 +71,8 @@ void setup() {
// was on this screen. Setting the correct screen size allows you
// to use the actual pixel coordinates of your screen.
Mouse.screenSize(1920, 1080);
// screenSize() is not supported on Teensy 2.0 & Teensy++ 2.0.
// Delete this line to run on 8 bit Teensy boards.
}


Expand Down Expand Up @@ -127,6 +129,8 @@ void loop() {

if (button21.fallingEdge()) {
Mouse.moveTo(10, 10); // move near upper left corner (Apple menu)
// moveTo() is not supported on Teensy 2.0 & Teensy++ 2.0.
// Delete this line to run on 8 bit Teensy boards.
}
if (button22.fallingEdge()) {
Mouse.moveTo(960, 540); // move to the screen center
Expand Down

0 comments on commit cf1dbf7

Please sign in to comment.