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