-
Notifications
You must be signed in to change notification settings - Fork 7.6k
USB USBHIDKeyboard::pressRaw() modifier key not working #9377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @EmileSpecialProducts for reporting. I will take a look. |
This is correct. The modifiers are marked in a bitmap in the HID Report Descriptor.
|
It shall be fixed with #9473 |
Board
ESP32-S3
Device Description
ESP32-S3
Hardware Configuration
USB connection on ESP32-S3
Version
latest master (checkout manually)
IDE Name
PlatformIO / not relavant
Operating System
Win
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
USB
Description
The modifiers are not working for the USBHIDKeyboard::pressRaw(uint8_t k)/ USBHIDKeyboard::releaseRaw(uint8_t k)
The modifiers are between 0xe0 and 0xe8 this will represent the Bit in the _keyReport.modifiers.
Then you will need to subtract 0xe0 and not 0x80
Original code:
Needs to be
Sketch
not provided.
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: