eliminated Keyboard.type() - unnecessary duplication of Keyboard.write() (David Mellis). Also edit KeyboardReprogram example which was the only example using type()
This commit is contained in:
parent
58c36f76d5
commit
d3eabc9c01
|
@ -591,8 +591,7 @@ void Keyboard_::releaseAll(void)
|
|||
sendReport(&_keyReport);
|
||||
}
|
||||
|
||||
// type() does a press and release of the specified key.
|
||||
size_t Keyboard_::type(uint8_t c)
|
||||
size_t Keyboard_::write(uint8_t c)
|
||||
{
|
||||
uint8_t p = press(c); // Keydown
|
||||
uint8_t r = release(c); // Keyup
|
||||
|
|
|
@ -126,8 +126,7 @@ public:
|
|||
Keyboard_(void);
|
||||
void begin(void);
|
||||
void end(void);
|
||||
virtual size_t write(uint8_t k) {return type(k);};
|
||||
virtual size_t type(uint8_t k);
|
||||
virtual size_t write(uint8_t k);
|
||||
virtual size_t press(uint8_t k);
|
||||
virtual size_t release(uint8_t k);
|
||||
|
||||
|
|
Loading…
Reference in New Issue