1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

changed Keyboard write() method to type(). Made write() an alias for type() to allow subclassing by Stream.

This commit is contained in:
Zach Eveland 2011-12-20 17:09:44 -05:00
parent 20564fb1d0
commit 20e7f2d354
2 changed files with 4 additions and 2 deletions

View File

@ -406,7 +406,8 @@ const uint8_t _asciimap[128] =
};
uint8_t USBPutChar(uint8_t c);
size_t Keyboard_::write(uint8_t c)
size_t Keyboard_::type(uint8_t c)
{
// Keydown
{

View File

@ -104,7 +104,8 @@ private:
void setKeyMap(KeyMap* keyMap);
public:
Keyboard_();
virtual size_t write(uint8_t);
virtual size_t write(uint8_t c) {type(c);};
virtual size_t type(uint8_t c);
};
extern Keyboard_ Keyboard;