aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-24 22:08:49 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-24 22:08:49 +0100
commit6287d4e9068d8bd27a9e62643f54adb69e84befd (patch)
tree2e94d4cda12cd6b0b3b9c33312156000120eb633 /src/crepe/api
parent6c2fc3716c9c6c68e982b243af5f7ed04fb35e86 (diff)
input facade
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/LoopManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp
index a64366f..af306c0 100644
--- a/src/crepe/api/LoopManager.cpp
+++ b/src/crepe/api/LoopManager.cpp
@@ -6,6 +6,7 @@
#include "../system/PhysicsSystem.h"
#include "../system/RenderSystem.h"
#include "../system/ScriptSystem.h"
+#include "../system/InputSystem.h"
#include "LoopManager.h"
#include "LoopTimer.h"
@@ -20,10 +21,11 @@ LoopManager::LoopManager() {
this->load_system<PhysicsSystem>();
this->load_system<RenderSystem>();
this->load_system<ScriptSystem>();
+ this->load_system<InputSystem>();
}
void LoopManager::process_input() {
- SDLContext::get_instance().handle_events(this->game_running);
+ this->get_system<InputSystem>().update();
}
void LoopManager::start() {