aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/HID.cpp5
-rw-r--r--cores/arduino/USBAPI.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp
index 8ed1566..d69522f 100644
--- a/cores/arduino/HID.cpp
+++ b/cores/arduino/HID.cpp
@@ -408,6 +408,11 @@ const uint8_t _asciimap[128] =
uint8_t USBPutChar(uint8_t c);
size_t Keyboard_::write(uint8_t c)
{
+ type(c);
+}
+
+size_t Keyboard_::type(uint8_t c)
+{
// Keydown
{
KeyReport keys = {0};
diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h
index 1772c3c..326fd6c 100644
--- a/cores/arduino/USBAPI.h
+++ b/cores/arduino/USBAPI.h
@@ -105,6 +105,7 @@ private:
public:
Keyboard_();
virtual size_t write(uint8_t);
+ virtual size_t type(uint8_t);
};
extern Keyboard_ Keyboard;