Left and right Windows keys tracking in keyboard.c.
This commit is contained in:
@@ -167,6 +167,12 @@ keyboard_input(int down, uint16_t scan)
|
||||
case 0x138: /* Right Alt */
|
||||
shift |= 0x40;
|
||||
break;
|
||||
case 0x15b: /* Left Windows */
|
||||
shift |= 0x08;
|
||||
break;
|
||||
case 0x15c: /* Right Windows */
|
||||
shift |= 0x80;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
@@ -191,6 +197,12 @@ keyboard_input(int down, uint16_t scan)
|
||||
case 0x138: /* Right Alt */
|
||||
shift &= ~0x40;
|
||||
break;
|
||||
case 0x15b: /* Left Windows */
|
||||
shift &= ~0x08;
|
||||
break;
|
||||
case 0x15c: /* Right Windows */
|
||||
shift &= ~0x80;
|
||||
break;
|
||||
case 0x03a: /* Caps Lock */
|
||||
caps_lock ^= 1;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user