PaulStoffregen / USBHost_t36

USB Host Library for Teensy 3.6 and 4.0
165 stars 85 forks source link

KeyboardController::process_bluetooth_HID_data reports bad button press/release data #43

Open sanelss opened 3 years ago

sanelss commented 3 years ago

The code that determines if a current key is pressed references "report" but it does not contain the correct data so when you hold a key and press another one it will call release for the held down key erroneously.

Potential fix is calling "memcpy(report, &data[1], 8);" after "if (data[0] != 1) return false;" but unaware of the wider implications of writing that data into report.

https://forum.pjrc.com/threads/65043-KeyboardController-process_bluetooth_HID_data-reports-bad-button-press-release-data