aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/USBAPI.h
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2012-03-26 17:28:02 -0400
committerZach Eveland <zeveland@blacklabel-development.com>2012-03-26 17:28:02 -0400
commit58c36f76d51d1fe4859140acf5c9c056b4204da5 (patch)
treec9699c9a4ed1ba313fea8b18b8f67f3aa4186305 /cores/arduino/USBAPI.h
parentf646c9186d33b26adeaada088e9549417463cdab (diff)
added methods to Keyboard to handle multiple simultaneous key presses or releases (up to six each)
Diffstat (limited to 'cores/arduino/USBAPI.h')
-rw-r--r--cores/arduino/USBAPI.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h
index c8948c1..e83089a 100644
--- a/cores/arduino/USBAPI.h
+++ b/cores/arduino/USBAPI.h
@@ -130,6 +130,21 @@ public:
virtual size_t type(uint8_t k);
virtual size_t press(uint8_t k);
virtual size_t release(uint8_t k);
+
+ virtual size_t press(uint8_t k[], uint8_t len);
+ virtual size_t press(uint8_t k1, uint8_t k2);
+ virtual size_t press(uint8_t k1, uint8_t k2, uint8_t k3);
+ virtual size_t press(uint8_t k1, uint8_t k2, uint8_t k3, uint8_t k4);
+ virtual size_t press(uint8_t k1, uint8_t k2, uint8_t k3, uint8_t k4, uint8_t k5);
+ virtual size_t press(uint8_t k1, uint8_t k2, uint8_t k3, uint8_t k4, uint8_t k5, uint8_t k6);
+
+ virtual size_t release(uint8_t k[], uint8_t len);
+ virtual size_t release(uint8_t k1, uint8_t k2);
+ virtual size_t release(uint8_t k1, uint8_t k2, uint8_t k3);
+ virtual size_t release(uint8_t k1, uint8_t k2, uint8_t k3, uint8_t k4);
+ virtual size_t release(uint8_t k1, uint8_t k2, uint8_t k3, uint8_t k4, uint8_t k5);
+ virtual size_t release(uint8_t k1, uint8_t k2, uint8_t k3, uint8_t k4, uint8_t k5, uint8_t k6);
+
virtual void releaseAll(void);
};
extern Keyboard_ Keyboard;