From d3c96622b31b0f000881081ac4cdbdda28dd9da3 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Mon, 12 Sep 2011 08:14:13 -0400 Subject: made Mouse.buttons() private. removed MOUSE_ALL macro --- cores/arduino/USBAPI.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cores') diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h index 03dddb8..73a90ce 100644 --- a/cores/arduino/USBAPI.h +++ b/cores/arduino/USBAPI.h @@ -46,16 +46,16 @@ 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_ { +private: uint8_t _buttons; + void buttons(uint8_t b); public: Mouse_(); 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 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 }; -- cgit v1.2.3-18-g5258