summaryrefslogtreecommitdiffhomepage
path: root/editor/events.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-03 17:28:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-03 20:34:02 +0100
commitf947c96ba400784090aa36c5bde469c92843083d (patch)
tree0784f1062e5bea931dfe757cf7ac74c680e50f55 /editor/events.cpp
parent8b5ad57aefe1d4bdee5334b194f63168fbe8581e (diff)
editor: add rendering clickables
Diffstat (limited to 'editor/events.cpp')
-rw-r--r--editor/events.cpp33
1 files changed, 17 insertions, 16 deletions
diff --git a/editor/events.cpp b/editor/events.cpp
index 08a3e766..cd3e4b9a 100644
--- a/editor/events.cpp
+++ b/editor/events.cpp
@@ -122,22 +122,23 @@ auto app::resolve_keybinding(int k_, int mods_) const -> std::tuple<key, int>
switch (int mods = k2 & kmod_mask; k2)
{
default: continue;
- case SDLK_w: return { key_camera_up, mods };
- case SDLK_a: return { key_camera_left, mods };
- case SDLK_s: return { key_camera_down, mods };
- case SDLK_d: return { key_camera_right, mods };
- case SDLK_HOME: return { key_camera_reset, mods };
- case SDLK_r: return { key_rotate_tile, mods };
- case SDLK_1: return { key_mode_none, mods };
- case SDLK_2: return { key_mode_floor, mods };
- case SDLK_3: return { key_mode_walls, mods };
- case SDLK_4: return { key_mode_scenery, mods };
- case SDLK_c | ALT: return { key_mode_collisions, mods };
- case SDLK_F5: return { key_quicksave, mods };
- case SDLK_F9: return { key_quickload, mods };
- 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_w: return { key_camera_up, mods };
+ case SDLK_a: return { key_camera_left, mods };
+ case SDLK_s: return { key_camera_down, mods };
+ case SDLK_d: return { key_camera_right, mods };
+ case SDLK_HOME: return { key_camera_reset, mods };
+ case SDLK_r: return { key_rotate_tile, mods };
+ case SDLK_1: return { key_mode_none, mods };
+ case SDLK_2: return { key_mode_floor, mods };
+ case SDLK_3: return { key_mode_walls, mods };
+ case SDLK_4: return { key_mode_scenery, mods };
+ case SDLK_c | ALT: return { key_render_collision_boxes, mods };
+ case SDLK_l | ALT: return { key_render_clickables, mods };
+ case SDLK_F5: return { key_quicksave, mods };
+ case SDLK_F9: return { key_quickload, mods };
+ case SDLK_q | CTRL: return { key_quit, mods };
+ case SDLK_n | CTRL: return { key_new_file, mods };
+ case SDLK_ESCAPE: return { key_escape, mods };
}
}
}