diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-24 22:08:49 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-24 22:08:49 +0100 |
commit | 6287d4e9068d8bd27a9e62643f54adb69e84befd (patch) | |
tree | 2e94d4cda12cd6b0b3b9c33312156000120eb633 /src/crepe/api | |
parent | 6c2fc3716c9c6c68e982b243af5f7ed04fb35e86 (diff) |
input facade
Diffstat (limited to 'src/crepe/api')
-rw-r--r-- | src/crepe/api/LoopManager.cpp | 4 |
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() { |