diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2011-12-20 17:00:19 -0500 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2011-12-20 17:00:19 -0500 |
commit | e4930f866d41baa7e8ac615f22dc3e92ec0f1c5a (patch) | |
tree | c59cd56317a2d6fcf283907afa3f4a8331edadff /cores/arduino/HID.cpp | |
parent | 6dc00061df81b4750208996bb7dd0ec76f8f901f (diff) |
changed Keyboard write() method to type(). Made write() an alias for type() to allow subclassing by Stream.
Diffstat (limited to 'cores/arduino/HID.cpp')
-rw-r--r-- | cores/arduino/HID.cpp | 5 |
1 files changed, 5 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}; |