feat: add keyboard layout support

This commit is contained in:
2026-08-13 17:57:44 +02:00
parent 86e3ebfe33
commit 821543238d
36 changed files with 1132 additions and 125 deletions
+7
View File
@@ -391,6 +391,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 {
+3
View File
@@ -228,6 +228,9 @@ typedef struct {
uint8_t shift;
uint8_t ctrl;
uint8_t alt;
uint8_t capslock;
uint8_t altgr;
uint8_t extended;
} mtk_key_event;
typedef struct {