Left and right Windows keys tracking in keyboard.c.

This commit is contained in:
OBattler
2023-08-07 03:32:56 +02:00
parent 7f4fdf09b5
commit 53daf8be9d

View File

@@ -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;