diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-07 20:20:18 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:55 +0200 |
commit | f0824fdebc79fbf3843c2053522107c33e3ce2a3 (patch) | |
tree | e5bd34fa89cbe80cf8a30596766cf95098465aec /src/game/input_configurator.hpp | |
parent | 12fffa7df0685ef6d23ffe888a06695ae490df81 (diff) |
refactor: move directions to vector2 & make vector2 hashable
Diffstat (limited to 'src/game/input_configurator.hpp')
-rw-r--r-- | src/game/input_configurator.hpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/game/input_configurator.hpp b/src/game/input_configurator.hpp index 217c21e..3846d50 100644 --- a/src/game/input_configurator.hpp +++ b/src/game/input_configurator.hpp @@ -1,10 +1,10 @@ #pragma once #include "DI/auto_wirable.hpp" -#include "interfaces/direction.hpp" #include "interfaces/input.hpp" #include "interfaces/input_configurator.hpp" +#include "engine/data/vector2.hpp" #include "engine/user/cursor.hpp" #include <array> @@ -13,8 +13,7 @@ namespace InputActions { -template <Direction::value_type direction> -auto move_cursor(CursorController cursor_controller); +auto move_cursor(const Vector2 &direction, const CursorController &cursor_controller); void exit_success(); @@ -32,5 +31,3 @@ public: private: std::shared_ptr<CursorController> _cursor_controller; }; - -#include "input_configurator.tpp" |