8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2c1043 commit 15a7ebeCopy full SHA for 15a7ebe
hardware/arduino/sam/libraries/USBHost/examples/MouseController/MouseController.ino
@@ -63,15 +63,15 @@ void mousePressed() {
63
// This function intercepts mouse button release
64
void mouseReleased() {
65
Serial.print("Released: ");
66
- if (!mouse.getButton(LEFT_BUTTON) && left==true) {
+ if (!mouse.getButton(LEFT_BUTTON) && leftButton == true) {
67
Serial.print("L");
68
leftButton = false;
69
}
70
- if (!mouse.getButton(MIDDLE_BUTTON) && middle==true) {
+ if (!mouse.getButton(MIDDLE_BUTTON) && middleButton == true) {
71
Serial.print("M");
72
middleButton = false;
73
74
- if (!mouse.getButton(RIGHT_BUTTON) && right==true) {
+ if (!mouse.getButton(RIGHT_BUTTON) && rightButton == true) {
75
Serial.print("R");
76
rightButton = false;
77
0 commit comments