aboutsummaryrefslogtreecommitdiff
path: root/src/engine/engine.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-20 13:17:16 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:56 +0200
commit78f5d8cf644383adf20933ad64c160c07c2c54fb (patch)
tree2a348d90f8f150665c379bf2f3741731999dd679 /src/engine/engine.hpp
parentb6061eff99907495de282f611e8389e6468a1fb0 (diff)
refactor: improve input configuring structure
Diffstat (limited to 'src/engine/engine.hpp')
-rw-r--r--src/engine/engine.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/engine.hpp b/src/engine/engine.hpp
index 42cc297..32afa56 100644
--- a/src/engine/engine.hpp
+++ b/src/engine/engine.hpp
@@ -1,11 +1,11 @@
#pragma once
#include "DI/auto_wirable.hpp"
+#include "interfaces/command.hpp"
#include "interfaces/cursor.hpp"
#include "interfaces/engine.hpp"
#include "interfaces/game.hpp"
#include "interfaces/input.hpp"
-#include "interfaces/observable.hpp"
#include "interfaces/scene.hpp"
#include "interfaces/window.hpp"
@@ -33,6 +33,6 @@ private:
std::shared_ptr<ICursorController> _cursor_controller;
std::shared_ptr<IWindow> _window;
- void
- _configure_input(const std::unordered_map<char, Callback> &input_config) noexcept;
+ void _configure_input(
+ const std::unordered_map<char, std::shared_ptr<ICommand>> &input_config) noexcept;
};