Improved Windows keyboard input

- added handling of syskey-messages (alt-Key now generates Key events)
- right and left variants of keys now generate seperate events (e.g. left shift and right shift are seperate keys now instead of simply being "shift")
- added method to get the localized name of a Key
This commit is contained in:
Simon Lübeß
2021-03-14 17:59:13 +01:00
parent cfff2cb738
commit 2ad45edef5
3 changed files with 80 additions and 4 deletions
+1
View File
@@ -68,6 +68,7 @@ namespace GlitchyEngine
case Z = 90; // Z key
case LeftSuper = 91; // Left Windows key(Microsoft® Natural® keyboard)
case RightSuper = 92; // Right Windows key(Natural keyboard)
case ContextMenu = 93; // Context Menu key (VK_APPS)
case Numpad0 = 96; // Numeric keypad 0 key
case Numpad1 = 97; // Numeric keypad 1 key
case Numpad2 = 98; // Numeric keypad 2 key