aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-28 21:30:30 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:54 +0200
commitede689d23e57c9b701ab19aa9112a0b2368865c9 (patch)
treee8c7afc7b2e5caf43b1b0c52356c0596021f25cb /src/bootstrap.cpp
parentf0883534b3303cf2b74f3ab51efe16615d2561a9 (diff)
feat: add input handler & quitting with 'q'
Diffstat (limited to 'src/bootstrap.cpp')
-rw-r--r--src/bootstrap.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp
index 8a8aa25..6b4a954 100644
--- a/src/bootstrap.cpp
+++ b/src/bootstrap.cpp
@@ -4,6 +4,7 @@
#include "interfaces/argument_parser.hpp"
#include "interfaces/bounds.hpp"
#include "interfaces/game.hpp"
+#include "interfaces/input.hpp"
#include "interfaces/matrix.hpp"
#include "interfaces/randomization.hpp"
#include "interfaces/scene.hpp"
@@ -15,6 +16,7 @@
#include "engine/graphics/scene.hpp"
#include "engine/graphics/string_matrix.hpp"
#include "engine/graphics/vector2.hpp"
+#include "engine/user/input.hpp"
#include "game/game.hpp"
#include "randomization/generator.hpp"
#include "randomization/seed_generator.hpp"
@@ -30,6 +32,7 @@ Container bootstrap()
container.bind<IArgumentParser>().to<ArgumentParser>();
container.bind<IGame>().to<Game>();
container.bind<IScene>().to<Scene>();
+ container.bind<IInputHandler>().to<InputHandler>();
container.bind<IRandomNumberGeneratorFactory>().to_factory(
[](const unsigned int &seed)