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
@@ -620,13 +620,13 @@ extern "C" void _start() {
|
||||
else if (key.ctrl && (key.ascii == '-' || key.ascii == 31)) { zoom_out(cx, cy); redraw = true; }
|
||||
|
||||
// Arrow keys to pan
|
||||
else if (key.scancode == 0x48) { g_pan_y += PAN_STEP; redraw = true; }
|
||||
else if (key.scancode == 0x50) { g_pan_y -= PAN_STEP; redraw = true; }
|
||||
else if (key.scancode == 0x4B) { g_pan_x += PAN_STEP; redraw = true; }
|
||||
else if (key.scancode == 0x4D) { g_pan_x -= PAN_STEP; redraw = true; }
|
||||
else if (montauk::nav_scancode(key) == 0x48) { g_pan_y += PAN_STEP; redraw = true; }
|
||||
else if (montauk::nav_scancode(key) == 0x50) { g_pan_y -= PAN_STEP; redraw = true; }
|
||||
else if (montauk::nav_scancode(key) == 0x4B) { g_pan_x += PAN_STEP; redraw = true; }
|
||||
else if (montauk::nav_scancode(key) == 0x4D) { g_pan_x -= PAN_STEP; redraw = true; }
|
||||
|
||||
// Home to center
|
||||
else if (key.scancode == 0x47) { center_image(); redraw = true; }
|
||||
else if (montauk::nav_scancode(key) == 0x47) { center_image(); redraw = true; }
|
||||
|
||||
if (redraw && g_load_ok) clamp_pan();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user