diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-23 17:31:31 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-23 17:31:31 +0200 |
commit | cce1f768e7399b838a2b865511915bdd576dbbf4 (patch) | |
tree | 4c6a8f2dc9112394fd329d56c0f628ce66b16467 /main/keyboard.cpp | |
parent | 6b875a0919b9932eca9ed877552c34ecb220b7d8 (diff) |
a
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 |