From 78f5d8cf644383adf20933ad64c160c07c2c54fb Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 20 Mar 2022 13:17:16 +0100 Subject: refactor: improve input configuring structure --- src/game/game.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/game/game.hpp') diff --git a/src/game/game.hpp b/src/game/game.hpp index 110b1c8..9ec5b41 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -1,7 +1,12 @@ #pragma once #include "DI/auto_wirable.hpp" +#include "interfaces/cursor.hpp" #include "interfaces/game.hpp" +#include "interfaces/scene.hpp" +#include "interfaces/window.hpp" + +#include class Game : public IGame, public AutoWirable { @@ -9,4 +14,10 @@ public: Game() noexcept = default; void run() noexcept override; + + [[nodiscard]] std::unordered_map> + get_input_config(const std::shared_ptr &window, + const std::shared_ptr &scene, + const std::shared_ptr &cursor_controller) + const noexcept override; }; -- cgit v1.2.3-18-g5258