From b29ae7a249dc7ccbe7561cf58a31be8db68efb28 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Tue, 15 May 2012 15:48:51 -0400 Subject: [PATCH] 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) --- hardware/arduino/cores/arduino/USBAPI.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/arduino/cores/arduino/USBAPI.h b/hardware/arduino/cores/arduino/USBAPI.h index 1c2184533..d5abdb690 100644 --- a/hardware/arduino/cores/arduino/USBAPI.h +++ b/hardware/arduino/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;