File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
hardware/arduino/sam/libraries/USBHost/examples/MouseController Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,15 +63,15 @@ void mousePressed() {
63
63
// This function intercepts mouse button release
64
64
void mouseReleased () {
65
65
Serial.print (" Released: " );
66
- if (!mouse.getButton (LEFT_BUTTON) && left== true ) {
66
+ if (!mouse.getButton (LEFT_BUTTON) && leftButton == true ) {
67
67
Serial.print (" L" );
68
68
leftButton = false ;
69
69
}
70
- if (!mouse.getButton (MIDDLE_BUTTON) && middle== true ) {
70
+ if (!mouse.getButton (MIDDLE_BUTTON) && middleButton == true ) {
71
71
Serial.print (" M" );
72
72
middleButton = false ;
73
73
}
74
- if (!mouse.getButton (RIGHT_BUTTON) && right== true ) {
74
+ if (!mouse.getButton (RIGHT_BUTTON) && rightButton == true ) {
75
75
Serial.print (" R" );
76
76
rightButton = false ;
77
77
}
You can’t perform that action at this time.
0 commit comments