aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/USBAPI.h
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino/USBAPI.h')
-rw-r--r--cores/arduino/USBAPI.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h
index 3c97ff1..6615fa8 100644
--- a/cores/arduino/USBAPI.h
+++ b/cores/arduino/USBAPI.h
@@ -100,12 +100,16 @@ class Keyboard_ : public Print
{
private:
KeyMap* _keyMap;
+ KeyReport _keyReport;
void sendReport(KeyReport* keys);
void setKeyMap(KeyMap* keyMap);
public:
Keyboard_();
- virtual size_t write(uint8_t c) {return type(c);};
- virtual size_t type(uint8_t c);
+ virtual size_t write(uint8_t k) {return type(k);};
+ virtual size_t type(uint8_t k);
+ virtual size_t press(uint8_t k);
+ virtual size_t release(uint8_t k);
+ virtual void releaseAll(void);
};
extern Keyboard_ Keyboard;