diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2012-05-15 15:48:51 -0400 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2012-05-15 15:48:51 -0400 |
commit | efa75937723c2b868ddb7cec93a0a3bf6fa01959 (patch) | |
tree | 66fbc7be0af02ee7f4224010d80ac8a9fc135823 /cores/arduino | |
parent | 757a77ab67edb9831fe11fe95c80cb08a695e4a1 (diff) |
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)
Diffstat (limited to 'cores/arduino')
-rw-r--r-- | cores/arduino/USBAPI.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h index 1c21845..d5abdb6 100644 --- a/cores/arduino/USBAPI.h +++ b/cores/arduino/USBAPI.h @@ -65,7 +65,7 @@ public: void move(signed char x, signed char y, signed char wheel = 0); void press(uint8_t b = MOUSE_LEFT); // press LEFT by default void release(uint8_t b = MOUSE_LEFT); // release LEFT by default - bool isPressed(uint8_t b = MOUSE_ALL); // check all buttons by default + bool isPressed(uint8_t b = MOUSE_LEFT); // check LEFT by default }; extern Mouse_ Mouse; |