diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2012-03-26 16:02:40 -0400 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2012-03-26 16:02:40 -0400 |
commit | 9c040a8a2bcc7ec8d128df05479b2e741fe192c2 (patch) | |
tree | c776e40e1f3a9ef56648d55da6599bd3cd554528 /cores/arduino/USBAPI.h | |
parent | dbdf2dadfa6464e6cc031401cbd34088e836548b (diff) |
added stub methods for begin() and end() to Mouse and Keyboard
Diffstat (limited to 'cores/arduino/USBAPI.h')
-rw-r--r-- | cores/arduino/USBAPI.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h index 05f7318..c8948c1 100644 --- a/cores/arduino/USBAPI.h +++ b/cores/arduino/USBAPI.h @@ -57,7 +57,9 @@ private: uint8_t _buttons; void buttons(uint8_t b); public: - Mouse_(); + Mouse_(void); + void begin(void); + void end(void); void click(uint8_t b = MOUSE_LEFT); void move(signed char x, signed char y, signed char wheel = 0); void press(uint8_t b = MOUSE_LEFT); // press LEFT by default @@ -121,7 +123,9 @@ private: KeyReport _keyReport; void sendReport(KeyReport* keys); public: - Keyboard_(); + Keyboard_(void); + void begin(void); + void end(void); virtual size_t write(uint8_t k) {return type(k);}; virtual size_t type(uint8_t k); virtual size_t press(uint8_t k); |