Report
1 year, 7 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?

Comment on this question

1 Answer

1 year, 7 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

You need to log in to post a question