diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-10 15:06:01 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-10 15:32:46 +0100 |
commit | 09183eb08755b20804f26a4341ab30bcea89a697 (patch) | |
tree | 947cbb58e67ebda5053ec27250d1c53ea8341a88 /editor/events.cpp | |
parent | abc0ca438938d9ccad9097a671556988b7625696 (diff) |
editor: add placeholder character walking around
Diffstat (limited to 'editor/events.cpp')
-rw-r--r-- | editor/events.cpp | 4 |
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 }; } } } |