From f0824fdebc79fbf3843c2053522107c33e3ce2a3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 7 Mar 2022 20:20:18 +0100 Subject: refactor: move directions to vector2 & make vector2 hashable --- src/game/input_configurator.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/game/input_configurator.hpp') 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 @@ -13,8 +13,7 @@ namespace InputActions { -template -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 _cursor_controller; }; - -#include "input_configurator.tpp" -- cgit v1.2.3-18-g5258