diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-05 13:54:25 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-05 13:54:25 +0100 |
commit | ea764e4d4c8688953637f4afba96ec2223f5a7c1 (patch) | |
tree | 1ec8fbdb4ce25cc9ce07e838482dae95cbb03793 /src/crepe/system/InputSystem.cpp | |
parent | 16fda1ef8da96c44cec20225cc4427d8eec52827 (diff) |
make format
Diffstat (limited to 'src/crepe/system/InputSystem.cpp')
-rw-r--r-- | src/crepe/system/InputSystem.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/crepe/system/InputSystem.cpp b/src/crepe/system/InputSystem.cpp index 4a7f115..7cc8d30 100644 --- a/src/crepe/system/InputSystem.cpp +++ b/src/crepe/system/InputSystem.cpp @@ -1,14 +1,13 @@ +#include "../api/Button.h" #include "../manager/ComponentManager.h" #include "../manager/EventManager.h" -#include "../api/Button.h" - #include "InputSystem.h" using namespace crepe; void InputSystem::update() { - ComponentManager& mgr = this->mediator.component_manager; + ComponentManager & mgr = this->mediator.component_manager; EventManager & event_mgr = this->mediator.event_manager; std::vector<SDLContext::EventData> event_list = SDLContext::get_instance().get_events(); RefVector<Button> buttons = mgr.get_components_by_type<Button>(); @@ -119,7 +118,7 @@ void InputSystem::update() { } void InputSystem::handle_move(const SDLContext::EventData & event_data, const int world_mouse_x, const int world_mouse_y) { - ComponentManager& mgr = this->mediator.component_manager; + ComponentManager & mgr = this->mediator.component_manager; RefVector<Button> buttons = mgr.get_components_by_type<Button>(); @@ -147,7 +146,7 @@ void InputSystem::handle_move(const SDLContext::EventData & event_data, void InputSystem::handle_click(const MouseButton & mouse_button, const int world_mouse_x, const int world_mouse_y) { - ComponentManager& mgr = this->mediator.component_manager; + ComponentManager & mgr = this->mediator.component_manager; RefVector<Button> buttons = mgr.get_components_by_type<Button>(); |