File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
content/hardware/10.mega/boards/due/tutorials/mouse-controller Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -153,23 +153,23 @@ void mouseReleased() {
153
153
154
154
Serial.print("Released: ");
155
155
156
- if (!mouse.getButton(LEFT_BUTTON) && left ==true) {
156
+ if (!mouse.getButton(LEFT_BUTTON) && leftButton ==true) {
157
157
158
158
Serial.print("L");
159
159
160
160
leftButton = false;
161
161
162
162
}
163
163
164
- if (!mouse.getButton(MIDDLE_BUTTON) && middle ==true) {
164
+ if (!mouse.getButton(MIDDLE_BUTTON) && middleButton ==true) {
165
165
166
166
Serial.print("M");
167
167
168
168
middleButton = false;
169
169
170
170
}
171
171
172
- if (!mouse.getButton(RIGHT_BUTTON) && right ==true) {
172
+ if (!mouse.getButton(RIGHT_BUTTON) && rightButton ==true) {
173
173
174
174
Serial.print("R");
175
175
You can’t perform that action at this time.
0 commit comments