feat: switch text to UTF-8; add Unicode key events, dead keys & Czech layout; fix numpad navigation; add NumLock support

This commit is contained in:
daniel committed 2026-10-03 10:11:49 +02:00
1 parent 32660ddd1a
commit 2aa6360b3d
101 files changed
+3733 -1639

No files matched your search

+6 -6
View File
@@ -402,12 +402,12 @@ extern "C" void _start() {
if (ev.key.ascii == 'q' || ev.key.ascii == 'Q' || ev.key.scancode == 0x01)
break;
if (ev.key.scancode == 0x48) { g_scroll_y -= SCROLL_STEP; redraw = true; }
if (ev.key.scancode == 0x50) { g_scroll_y += SCROLL_STEP; redraw = true; }
if (ev.key.scancode == 0x47) { g_scroll_y = 0; redraw = true; }
if (ev.key.scancode == 0x4F) { g_scroll_y = g_content_h; redraw = true; }
if (ev.key.scancode == 0x49) { g_scroll_y -= g_win_h; redraw = true; }
if (ev.key.scancode == 0x51) { g_scroll_y += g_win_h; redraw = true; }
if (montauk::nav_scancode(ev.key) == 0x48) { g_scroll_y -= SCROLL_STEP; redraw = true; }
if (montauk::nav_scancode(ev.key) == 0x50) { g_scroll_y += SCROLL_STEP; redraw = true; }
if (montauk::nav_scancode(ev.key) == 0x47) { g_scroll_y = 0; redraw = true; }
if (montauk::nav_scancode(ev.key) == 0x4F) { g_scroll_y = g_content_h; redraw = true; }
if (montauk::nav_scancode(ev.key) == 0x49) { g_scroll_y -= g_win_h; redraw = true; }
if (montauk::nav_scancode(ev.key) == 0x51) { g_scroll_y += g_win_h; redraw = true; }
if (redraw) {
clamp_scroll();