[gnoduino: 122/237] made Mouse.buttons() private. removed MOUSE_ALL macro



commit ea6c2b3af0a09f11f267fcc5808e45ad5920c9ca
Author: Zach Eveland <zeveland blacklabel-development com>
Date:   Mon Sep 12 08:14:13 2011 -0400

    made Mouse.buttons() private.  removed MOUSE_ALL macro

 arduino/cores/arduino/USBAPI.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/arduino/cores/arduino/USBAPI.h b/arduino/cores/arduino/USBAPI.h
index 03dddb8..73a90ce 100644
--- a/arduino/cores/arduino/USBAPI.h
+++ b/arduino/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		
 };



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]