Skip to content

Commit b29ae7a

Browse files
committed
Mouse.isPressed() now checks only for left button by default
if no argument is given now checks left button by default to be consistent with press() and release() (thanks, David Mellis)
1 parent 32e365b commit b29ae7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/arduino/cores/arduino/USBAPI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Mouse_
6565
void move(signed char x, signed char y, signed char wheel = 0);
6666
void press(uint8_t b = MOUSE_LEFT); // press LEFT by default
6767
void release(uint8_t b = MOUSE_LEFT); // release LEFT by default
68-
bool isPressed(uint8_t b = MOUSE_ALL); // check all buttons by default
68+
bool isPressed(uint8_t b = MOUSE_LEFT); // check LEFT by default
6969
};
7070
extern Mouse_ Mouse;
7171

0 commit comments

Comments
 (0)