aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2011-09-12 08:14:13 -0400
committerZach Eveland <zeveland@blacklabel-development.com>2011-09-12 08:14:13 -0400
commitd3c96622b31b0f000881081ac4cdbdda28dd9da3 (patch)
tree9d5b0039eb51952f7a9ec2826fa01e82e9d5e028 /cores/arduino
parent620254196ef11f2d089d1c3aee942c5effff8025 (diff)
made Mouse.buttons() private. removed MOUSE_ALL macro
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/USBAPI.h6
1 files changed, 3 insertions, 3 deletions
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
};