diff options
Diffstat (limited to 'main/keyboard.cpp')
| -rw-r--r-- | main/keyboard.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/main/keyboard.cpp b/main/keyboard.cpp deleted file mode 100644 index a700d0f4..00000000 --- a/main/keyboard.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include "app.hpp" - -namespace floormat { - -void app::do_key(KeyEvent::Key k, KeyEvent::Modifiers m, bool pressed, bool repeated) -{ - //using Mods = KeyEvent::Modifiers; - - (void)m; - (void)repeated; - - const key x = fm_begin(switch (k) - { - using enum KeyEvent::Key; - using enum key; - - default: return COUNT; - case W: return camera_up; - case A: return camera_left; - case S: return camera_down; - case D: return camera_right; - case Home: return camera_reset; - case R: return rotate_tile; - case F5: return quicksave; - case F9: return quickload; - case Esc: return quit; - }); - - if (x != key::COUNT) - keys[x] = pressed; -} - -app::~app() -{ - loader_::destroy(); -} - -} // namespace floormat |
