6 years, 11 months ago.

USBKeyboard - press and release functions?

Is there any way to use functions similar to teensy's Keyboard.press() and Keyboard.release() with the USBKeyboard class from the USBDevice library?

2 Answers

5 years, 2 months ago.

Did you solve the problem ? I don't know how to make a key keep pressed

6 years, 11 months ago.

Hi Luke,

If you are referring to this library - https://os.mbed.com/handbook/USBKeyboard - then according to this document a similar function to keyboard.press() would be keyboard.keyCode(KEY_CAPS_LOCK); or some variation.

Please let me know if you have questions!

- Jenny

This isn't really what I'm looking for, I'm looking for seperate commands for pressing a key and releasing it, in order to simulate pressing+holding a key.

posted by Luke is a pseudonym 10 Jan 2018