Skip to content

Commit 32ca8c0

Browse files
committed
Fix incorrect comments re: which click in Mouse example codes
The default argument of these functions is MOUSE_LEFT. These are fixes for regressions of issues previously reported and fixed: - arduino/Arduino#6501 - arduino/Arduino#6500 - arduino/Arduino#6499 - arduino/Arduino#6498
1 parent 105dee6 commit 32ca8c0

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Language/Functions/USB/Mouse/mouseClick.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void setup(){
6363
}
6464
6565
void loop(){
66-
//if the button is pressed, send a Right mouse click
66+
//if the button is pressed, send a left mouse click
6767
if(digitalRead(2) == HIGH){
6868
Mouse.click();
6969
}

Language/Functions/USB/Mouse/mouseEnd.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void setup(){
5656
}
5757
5858
void loop(){
59-
//if the button is pressed, send a Right mouse click
59+
//if the button is pressed, send a left mouse click
6060
//then end the Mouse emulation
6161
if(digitalRead(2) == HIGH){
6262
Mouse.click();

Language/Functions/USB/Mouse/mouseIsPressed.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ void setup(){
7171
void loop(){
7272
//a variable for checking the button's state
7373
int mouseState=0;
74-
//if the switch attached to pin 2 is closed, press and hold the right mouse button and save the state ina variable
74+
//if the switch attached to pin 2 is closed, press and hold the left mouse button and save the state ina variable
7575
if(digitalRead(2) == HIGH){
7676
Mouse.press();
7777
mouseState=Mouse.isPressed();
7878
}
79-
//if the switch attached to pin 3 is closed, release the right mouse button and save the state in a variable
79+
//if the switch attached to pin 3 is closed, release the left mouse button and save the state in a variable
8080
if(digitalRead(3) == HIGH){
8181
Mouse.release();
8282
mouseState=Mouse.isPressed();

Language/Functions/USB/Mouse/mousePress.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ void setup(){
7070
}
7171
7272
void loop(){
73-
//if the switch attached to pin 2 is closed, press and hold the right mouse button
73+
//if the switch attached to pin 2 is closed, press and hold the left mouse button
7474
if(digitalRead(2) == HIGH){
7575
Mouse.press();
7676
}
77-
//if the switch attached to pin 3 is closed, release the right mouse button
77+
//if the switch attached to pin 3 is closed, release the left mouse button
7878
if(digitalRead(3) == HIGH){
7979
Mouse.release();
8080
}

Language/Functions/USB/Mouse/mouseRelease.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ void setup(){
6565
}
6666
6767
void loop(){
68-
//if the switch attached to pin 2 is closed, press and hold the right mouse button
68+
//if the switch attached to pin 2 is closed, press and hold the left mouse button
6969
if(digitalRead(2) == HIGH){
7070
Mouse.press();
7171
}
72-
//if the switch attached to pin 3 is closed, release the right mouse button
72+
//if the switch attached to pin 3 is closed, release the left mouse button
7373
if(digitalRead(3) == HIGH){
7474
Mouse.release();
7575
}

0 commit comments

Comments
 (0)