arduino / arduino/ArduinoCore-mbed
USBMouseKeyboard
- Dominant language
- C
- Stars
- 411
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
I'm unable to get keycodes to produce actual button presses, they just seem to input characters instead.
For example when I call: Keyboard.key_code(0x26); this should represent the up arrow being pressed on the keyboard, but instead I get the number 7 when I test it.
The same thing happens for all the Arrow keys:
0x25 = 5
0x26 = 7
0x27 = '
0x28 = 9
The codes for Enter and Escape (0x0D and 0x1B) don't seem to do anything at all.
These are the only buttons I've tested so far, so I'm unsure if any of them work.
I'm on version 4.04 of the library which I believe is the latest.
Any help would be appreciated!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported Keyboard.key_code calls on the ArduinoCore-mbed USBMouseKeyboard library, checking the arrow, Enter, and Escape codes listed in the issue. Done means those codes produce the corresponding keyboard button presses rather than characters or no input, with the behavior verified on the reported library version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arduino, c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100