From 26c3fb80fd3bf84968a1e464df518a0b6db6c5d9 Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Wed, 4 Dec 2024 22:57:45 +0100 Subject: fixed changes with mediator --- src/crepe/facade/SDLContext.cpp | 2 +- src/crepe/system/InputSystem.cpp | 13 +++++++------ src/crepe/system/InputSystem.h | 3 +-- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/crepe') diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp index aba7ce7..645a24f 100644 --- a/src/crepe/facade/SDLContext.cpp +++ b/src/crepe/facade/SDLContext.cpp @@ -17,7 +17,7 @@ #include "../api/Camera.h" #include "../api/Config.h" -#include "../api/EventManager.h" +#include "../manager/EventManager.h" #include "../api/Sprite.h" #include "../api/Texture.h" #include "../util/Log.h" diff --git a/src/crepe/system/InputSystem.cpp b/src/crepe/system/InputSystem.cpp index afd71fe..d24a33d 100644 --- a/src/crepe/system/InputSystem.cpp +++ b/src/crepe/system/InputSystem.cpp @@ -1,14 +1,15 @@ -#include "../ComponentManager.h" +#include "../manager/ComponentManager.h" +#include "../manager/EventManager.h" #include "../api/Button.h" -#include "../api/EventManager.h" + #include "InputSystem.h" using namespace crepe; void InputSystem::update() { - ComponentManager & mgr = this->component_manager; - EventManager & event_mgr = EventManager::get_instance(); + ComponentManager& mgr = this->mediator.component_manager; + EventManager & event_mgr = this->mediator.event_manager; std::vector event_list = SDLContext::get_instance().get_events(); RefVector