mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
closes #1163: wrong variable naming
This commit is contained in:
parent
c2c104315a
commit
15a7ebe568
@ -63,15 +63,15 @@ void mousePressed() {
|
|||||||
// This function intercepts mouse button release
|
// This function intercepts mouse button release
|
||||||
void mouseReleased() {
|
void mouseReleased() {
|
||||||
Serial.print("Released: ");
|
Serial.print("Released: ");
|
||||||
if (!mouse.getButton(LEFT_BUTTON) && left==true) {
|
if (!mouse.getButton(LEFT_BUTTON) && leftButton == true) {
|
||||||
Serial.print("L");
|
Serial.print("L");
|
||||||
leftButton = false;
|
leftButton = false;
|
||||||
}
|
}
|
||||||
if (!mouse.getButton(MIDDLE_BUTTON) && middle==true) {
|
if (!mouse.getButton(MIDDLE_BUTTON) && middleButton == true) {
|
||||||
Serial.print("M");
|
Serial.print("M");
|
||||||
middleButton = false;
|
middleButton = false;
|
||||||
}
|
}
|
||||||
if (!mouse.getButton(RIGHT_BUTTON) && right==true) {
|
if (!mouse.getButton(RIGHT_BUTTON) && rightButton == true) {
|
||||||
Serial.print("R");
|
Serial.print("R");
|
||||||
rightButton = false;
|
rightButton = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user