File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ size_t USBHIDKeyboard::pressRaw(uint8_t k)
219
219
uint8_t i;
220
220
if (k >= 0xE0 && k < 0xE8 ) {
221
221
// it's a modifier key
222
- _keyReport.modifiers |= (1 <<(k-0x80 ));
222
+ _keyReport.modifiers |= (1 <<(k-0xE0 ));
223
223
} else if (k && k < 0xA5 ) {
224
224
// Add k to the key report only if it's not already present
225
225
// and if there is an empty slot.
@@ -250,7 +250,7 @@ size_t USBHIDKeyboard::releaseRaw(uint8_t k)
250
250
uint8_t i;
251
251
if (k >= 0xE0 && k < 0xE8 ) {
252
252
// it's a modifier key
253
- _keyReport.modifiers &= ~(1 <<(k-0x80 ));
253
+ _keyReport.modifiers &= ~(1 <<(k-0xE0 ));
254
254
} else if (k && k < 0xA5 ) {
255
255
// Test the key report to see if k is present. Clear it if it exists.
256
256
// Check all positions in case the key is present more than once (which it shouldn't be)
You can’t perform that action at this time.
0 commit comments