From 53daf8be9d67cef004267a73e69c6f3211b7e3e0 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 7 Aug 2023 03:32:56 +0200 Subject: [PATCH] Left and right Windows keys tracking in keyboard.c. --- src/device/keyboard.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/device/keyboard.c b/src/device/keyboard.c index e788ff23f..15eb06035 100644 --- a/src/device/keyboard.c +++ b/src/device/keyboard.c @@ -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;