File tree 5 files changed +8
-8
lines changed
Language/Functions/USB/Mouse
5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ void setup(){
63
63
}
64
64
65
65
void loop(){
66
- //if the button is pressed, send a Right mouse click
66
+ //if the button is pressed, send a left mouse click
67
67
if(digitalRead(2) == HIGH){
68
68
Mouse.click();
69
69
}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ void setup(){
56
56
}
57
57
58
58
void loop(){
59
- //if the button is pressed, send a Right mouse click
59
+ //if the button is pressed, send a left mouse click
60
60
//then end the Mouse emulation
61
61
if(digitalRead(2) == HIGH){
62
62
Mouse.click();
Original file line number Diff line number Diff line change @@ -71,12 +71,12 @@ void setup(){
71
71
void loop(){
72
72
//a variable for checking the button's state
73
73
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
75
75
if(digitalRead(2) == HIGH){
76
76
Mouse.press();
77
77
mouseState=Mouse.isPressed();
78
78
}
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
80
80
if(digitalRead(3) == HIGH){
81
81
Mouse.release();
82
82
mouseState=Mouse.isPressed();
Original file line number Diff line number Diff line change @@ -70,11 +70,11 @@ void setup(){
70
70
}
71
71
72
72
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
74
74
if(digitalRead(2) == HIGH){
75
75
Mouse.press();
76
76
}
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
78
78
if(digitalRead(3) == HIGH){
79
79
Mouse.release();
80
80
}
Original file line number Diff line number Diff line change @@ -65,11 +65,11 @@ void setup(){
65
65
}
66
66
67
67
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
69
69
if(digitalRead(2) == HIGH){
70
70
Mouse.press();
71
71
}
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
73
73
if(digitalRead(3) == HIGH){
74
74
Mouse.release();
75
75
}
You can’t perform that action at this time.
0 commit comments