aboutsummaryrefslogtreecommitdiff
path: root/src/game/input_configurator.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-08 17:00:18 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:55 +0200
commite0eaff89b5f3f289bf5d560ea64b969c90d32d18 (patch)
treea6e91afcf89abc91629f2bee545ccadacf9bb673 /src/game/input_configurator.hpp
parent3359b00178357cb68d14e807c6deef3182532307 (diff)
refactor: add cursor controller interface
Diffstat (limited to 'src/game/input_configurator.hpp')
-rw-r--r--src/game/input_configurator.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/input_configurator.hpp b/src/game/input_configurator.hpp
index 8e5b9bf..fa501c7 100644
--- a/src/game/input_configurator.hpp
+++ b/src/game/input_configurator.hpp
@@ -1,11 +1,11 @@
#pragma once
#include "DI/auto_wirable.hpp"
+#include "interfaces/cursor.hpp"
#include "interfaces/input.hpp"
#include "interfaces/input_configurator.hpp"
#include "engine/data/vector2.hpp"
-#include "engine/user/cursor.hpp"
#include <array>
#include <memory>
@@ -13,7 +13,7 @@
namespace InputActions
{
-auto move_cursor(const Vector2 &direction, CursorController &cursor_controller);
+auto move_cursor(const Vector2 &direction, ICursorController &cursor_controller);
void exit_success();
@@ -21,13 +21,13 @@ void exit_success();
class InputConfigurator
: public IInputConfigurator,
- public AutoWirable<IInputConfigurator, InputConfigurator, CursorController>
+ public AutoWirable<IInputConfigurator, InputConfigurator, ICursorController>
{
public:
- explicit InputConfigurator(std::shared_ptr<CursorController> cursor_controller);
+ explicit InputConfigurator(std::shared_ptr<ICursorController> cursor_controller);
void configure(IInputHandler &input_handler) override;
private:
- std::shared_ptr<CursorController> _cursor_controller;
+ std::shared_ptr<ICursorController> _cursor_controller;
};