aboutsummaryrefslogtreecommitdiff
path: root/src/input_actions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_actions.cpp')
-rw-r--r--src/input_actions.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/input_actions.cpp b/src/input_actions.cpp
index 854dc62..5df6e5f 100644
--- a/src/input_actions.cpp
+++ b/src/input_actions.cpp
@@ -12,9 +12,10 @@ void exit_success()
Callback move_cursor(const Vector2 &direction,
const std::shared_ptr<ICursorController> &cursor_controller,
+ const std::shared_ptr<IScene> &scene,
const std::shared_ptr<IWindow> &window)
{
- return [direction, cursor_controller, window]()
+ return [direction, cursor_controller, scene, window]()
{
constexpr int32_t amount = 1;
@@ -29,6 +30,9 @@ Callback move_cursor(const Vector2 &direction,
}
cursor_controller->move_to(new_position);
+
+ scene->write_status(
+ fmt::format("X: {} Y {}", new_position.get_x(), new_position.get_y()));
};
}