mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
changed Keyboard write() method to type(). Made write() an alias for type() to allow subclassing by Stream.
This commit is contained in:
parent
d874bc9832
commit
de1d5fc0cb
@ -407,6 +407,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
|
||||
{
|
||||
|
@ -105,6 +105,7 @@ private:
|
||||
public:
|
||||
Keyboard_();
|
||||
virtual size_t write(uint8_t);
|
||||
virtual size_t type(uint8_t);
|
||||
};
|
||||
extern Keyboard_ Keyboard;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user