diff options
Diffstat (limited to 'cores/arduino')
| -rw-r--r-- | cores/arduino/HID.cpp | 11 | 
1 files changed, 4 insertions, 7 deletions
| diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp index e7ee249..b0ef6e3 100644 --- a/cores/arduino/HID.cpp +++ b/cores/arduino/HID.cpp @@ -523,13 +523,10 @@ void Keyboard_::releaseAll(void)  // type() does a press and release of the specified key.   size_t Keyboard_::type(uint8_t c) -{ -	releaseAll(); -	// Keydown -	press(c); -	//	Keyup -	releaseAll(); -	return 1; +{	 +	uint8_t p = press(c);		// Keydown +	uint8_t r = release(c);		// Keyup +	return (p&r);  }  #endif | 
