aboutsummaryrefslogtreecommitdiff
path: root/src/game/input_configurator.cpp
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.cpp
parent3359b00178357cb68d14e807c6deef3182532307 (diff)
refactor: add cursor controller interface
Diffstat (limited to 'src/game/input_configurator.cpp')
-rw-r--r--src/game/input_configurator.cpp4
1 files changed, 2 insertions, 2 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))
{
}