diff options
Diffstat (limited to 'src/input_actions.cpp')
-rw-r--r-- | src/input_actions.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/input_actions.cpp b/src/input_actions.cpp index 5df6e5f..7a6976d 100644 --- a/src/input_actions.cpp +++ b/src/input_actions.cpp @@ -1,5 +1,7 @@ #include "input_actions.hpp" +#include "strings.hpp" + #include <fmt/core.h> namespace InputActions @@ -31,8 +33,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())); + scene->write_status(fmt::format(STATUS_BAR_COORDINATES, + fmt::arg("x", new_position.get_x()), + fmt::arg("y", new_position.get_y()))); }; } |