summaryrefslogtreecommitdiffhomepage
path: root/editor/events.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-10 15:06:01 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-10 15:32:46 +0100
commit09183eb08755b20804f26a4341ab30bcea89a697 (patch)
tree947cbb58e67ebda5053ec27250d1c53ea8341a88 /editor/events.cpp
parentabc0ca438938d9ccad9097a671556988b7625696 (diff)
editor: add placeholder character walking around
Diffstat (limited to 'editor/events.cpp')
-rw-r--r--editor/events.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/events.cpp b/editor/events.cpp
index cd3e4b9a..2fb8b567 100644
--- a/editor/events.cpp
+++ b/editor/events.cpp
@@ -139,6 +139,10 @@ auto app::resolve_keybinding(int k_, int mods_) const -> std::tuple<key, int>
case SDLK_q | CTRL: return { key_quit, mods };
case SDLK_n | CTRL: return { key_new_file, mods };
case SDLK_ESCAPE: return { key_escape, mods };
+ case SDLK_LEFT: return { key_left, mods };
+ case SDLK_RIGHT: return { key_right, mods };
+ case SDLK_UP: return { key_up, mods };
+ case SDLK_DOWN: return { key_down, mods };
}
}
}