mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Make the right shift key work in OemToAscii (only the left shift key was working)
This commit is contained in:
parent
58a143b9fb
commit
8222d047f5
1 changed files with 2 additions and 2 deletions
|
@ -189,8 +189,8 @@ uint8_t KeyboardReportParser::OemToAscii(uint8_t mod, uint8_t key) {
|
|||
// [a-z]
|
||||
if (VALUE_WITHIN(key, 0x04, 0x1d)) {
|
||||
// Upper case letters
|
||||
if ((kbdLockingKeys.kbdLeds.bmCapsLock == 0 && (mod & 2)) ||
|
||||
(kbdLockingKeys.kbdLeds.bmCapsLock == 1 && (mod & 2) == 0))
|
||||
if ((kbdLockingKeys.kbdLeds.bmCapsLock == 0 && shift) ||
|
||||
(kbdLockingKeys.kbdLeds.bmCapsLock == 1 && shift == 0))
|
||||
return (key - 4 + 'A');
|
||||
|
||||
// Lower case letters
|
||||
|
|
Loading…
Reference in a new issue