From e0eaff89b5f3f289bf5d560ea64b969c90d32d18 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 8 Mar 2022 17:00:18 +0100 Subject: refactor: add cursor controller interface --- src/game/input_configurator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/input_configurator.cpp') 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 cursor_controller) +InputConfigurator::InputConfigurator(std::shared_ptr cursor_controller) : _cursor_controller(std::move(cursor_controller)) { } -- cgit v1.2.3-18-g5258