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:
1 parent
32660ddd1a
commit
2aa6360b3d
101 files changed
+3733
-1639
No files matched your search
@@ -306,12 +306,12 @@ extern "C" void _start() {
|
||||
|
||||
if (ev.type == 0 && ev.key.pressed) {
|
||||
if (ev.key.scancode == 0x01) break; // Escape
|
||||
if (ev.key.scancode == 0x51) {
|
||||
if (montauk::nav_scancode(ev.key) == 0x51) {
|
||||
// Page Down: scroll down
|
||||
g_scroll += 60;
|
||||
render();
|
||||
}
|
||||
if (ev.key.scancode == 0x49) {
|
||||
if (montauk::nav_scancode(ev.key) == 0x49) {
|
||||
// Page Up: scroll up
|
||||
g_scroll -= 60;
|
||||
if (g_scroll < 0) g_scroll = 0;
|
||||
|
||||
Reference in new issue
Block a user