Release specific key in keyboard's HID report #214
vishesh-varma
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, there are 3 functions in
Adafruit_USBD_HID.h
file, which are:keyboardReport(uint8_t report_id, uint8_t modifier, uint8_t keycode[6]);
Presses up to 6 keys + a modifier.
keyboardPress(uint8_t report_id, char ch);
Presses the specified character.
keyboardRelease(uint8_t report_id);
Releases all the keys currently pressed.
Since there is a function that presses one specific key, it makes sense to have a function that would only release the specified key, and not all of them.
The use case here is pretty apparent, when switching between different combinations of keys, one can only press the next combination after releasing the currently pressed one.
Beta Was this translation helpful? Give feedback.
All reactions