aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/input_configurator.cpp4
-rw-r--r--src/game/input_configurator.hpp10
2 files changed, 7 insertions, 7 deletions
diff --git a/src/game/input_configurator.cpp b/src/game/input_configurator.cpp
index ea1ee75..76e5b66 100644
--- a/src/game/input_configurator.cpp
+++ b/src/game/input_configurator.cpp
@@ -8,7 +8,7 @@ void exit_success()
exit(EXIT_SUCCESS);
}
-auto move_cursor(const Vector2 &direction, CursorController &cursor_controller)
+auto move_cursor(const Vector2 &direction, ICursorController &cursor_controller)
{
return [direction, &cursor_controller]()
{
@@ -18,7 +18,7 @@ auto move_cursor(const Vector2 &direction, CursorController &cursor_controller)
} // namespace InputActions
-InputConfigurator::InputConfigurator(std::shared_ptr<CursorController> cursor_controller)
+InputConfigurator::InputConfigurator(std::shared_ptr<ICursorController> cursor_controller)
: _cursor_controller(std::move(cursor_controller))
{
}
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;
};