From 90ea0707e6e3fb251b3eaf6c8682f68dd44299e1 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Tue, 30 Aug 2011 20:23:06 -0400 Subject: added Mouse press() and release() --- cores/arduino/USBAPI.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cores/arduino/USBAPI.h') diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h index 0dad176..03dddb8 100644 --- a/cores/arduino/USBAPI.h +++ b/cores/arduino/USBAPI.h @@ -46,6 +46,7 @@ extern Serial_ Serial; #define MOUSE_LEFT 1 #define MOUSE_MIDDLE 2 #define MOUSE_RIGHT 4 +#define MOUSE_ALL (MOUSE_LEFT | MOUSE_MIDDLE | MOUSE_RIGHT) class Mouse_ { @@ -55,6 +56,8 @@ public: void click(uint8_t b = MOUSE_LEFT); void move(signed char x, signed char y, signed char wheel = 0); void buttons(uint8_t b); + void press(uint8_t b = MOUSE_LEFT); // press LEFT by default + void release(uint8_t b = MOUSE_LEFT); // release LEFT by default }; extern Mouse_ Mouse; -- cgit v1.2.3-18-g5258