We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e2f92b2 + 2c127b1 commit a3616a5Copy full SHA for a3616a5
content/hardware/10.mega/boards/due/tutorials/mouse-controller/mouse-controller.md
@@ -153,23 +153,23 @@ void mouseReleased() {
153
154
Serial.print("Released: ");
155
156
- if (!mouse.getButton(LEFT_BUTTON) && left==true) {
+ if (!mouse.getButton(LEFT_BUTTON) && leftButton==true) {
157
158
Serial.print("L");
159
160
leftButton = false;
161
162
}
163
164
- if (!mouse.getButton(MIDDLE_BUTTON) && middle==true) {
+ if (!mouse.getButton(MIDDLE_BUTTON) && middleButton==true) {
165
166
Serial.print("M");
167
168
middleButton = false;
169
170
171
172
- if (!mouse.getButton(RIGHT_BUTTON) && right==true) {
+ if (!mouse.getButton(RIGHT_BUTTON) && rightButton==true) {
173
174
Serial.print("R");
175
0 commit comments