feat: add keyboard layout support

This commit is contained in:
daniel committed 2026-08-13 17:57:44 +02:00
1 parent 86e3ebfe33
commit 821543238d
36 files changed
+1132 -125

No files matched your search

+1 -1
View File
@@ -12,4 +12,4 @@
#pragma once
#define MONTAUK_BUILD_NUMBER 109
#define MONTAUK_BUILD_NUMBER 116
+3
View File
@@ -54,6 +54,9 @@ namespace montauk::abi {
outEvent->shift = k.Shift;
outEvent->ctrl = k.Ctrl;
outEvent->alt = k.Alt;
outEvent->capslock = k.CapsLock;
outEvent->altgr = k.AltGr;
outEvent->extended = k.Extended;
}
static char Sys_GetChar() {
+7
View File
@@ -458,6 +458,13 @@ namespace montauk::abi {
bool shift;
bool ctrl;
bool alt;
bool capslock;
// Right Alt held, reported separately from alt so keyboard layouts can
// use it as AltGr without swallowing left-Alt shortcuts.
bool altgr;
// Key came from an E0-prefixed scancode (keypad "/" and Enter share a
// scancode with the main-block keys). Layout translation must skip it.
bool extended;
};
struct MouseState {