From 38f14606c78c119d452f302f17329455e29a9a6f Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 10 Mar 2022 19:12:31 +0100 Subject: refactor: rename game initializer & move input config --- src/input_actions.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/input_actions.hpp (limited to 'src/input_actions.hpp') diff --git a/src/input_actions.hpp b/src/input_actions.hpp new file mode 100644 index 0000000..8283d78 --- /dev/null +++ b/src/input_actions.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include "interfaces/cursor.hpp" +#include "interfaces/observable.hpp" +#include "interfaces/scene.hpp" +#include "interfaces/window.hpp" + +#include "engine/data/vector2.hpp" + +#include + +namespace InputActions +{ + +Callback move_cursor(const Vector2 &direction, + const std::shared_ptr &cursor_controller, + const std::shared_ptr &window); + +void exit_success(); + +} // namespace InputActions -- cgit v1.2.3-18-g5258