diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-14 13:52:56 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-14 13:52:56 +0100 |
commit | dbe779ca850ec0bf5d9b5066a7a6df44f3762e4d (patch) | |
tree | fe87bdbf86017ee1ee5fe75d89f599f5ae8a5be1 /src/crepe/system/InputSystem.cpp | |
parent | c17233b10bd8e35bead60c5f44bb8a14836d755f (diff) |
make format
Diffstat (limited to 'src/crepe/system/InputSystem.cpp')
-rw-r--r-- | src/crepe/system/InputSystem.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/crepe/system/InputSystem.cpp b/src/crepe/system/InputSystem.cpp index 1427adf..fca540f 100644 --- a/src/crepe/system/InputSystem.cpp +++ b/src/crepe/system/InputSystem.cpp @@ -1,7 +1,7 @@ #include "../api/Button.h" +#include "../facade/SDLContext.h" #include "../manager/ComponentManager.h" #include "../manager/EventManager.h" -#include "../facade/SDLContext.h" #include "util/Log.h" #include "InputSystem.h" @@ -47,8 +47,8 @@ void InputSystem::update() { } } -void InputSystem::handle_mouse_event(const EventData & event, - const vec2 & camera_origin, const Camera & current_cam) { +void InputSystem::handle_mouse_event(const EventData & event, const vec2 & camera_origin, + const Camera & current_cam) { EventManager & event_mgr = this->mediator.event_manager; vec2 adjusted_mouse; adjusted_mouse.x = event.data.mouse_data.mouse_position.x + camera_origin.x; @@ -153,9 +153,7 @@ void InputSystem::handle_non_mouse_event(const EventData & event) { } } - -void InputSystem::handle_move(const EventData & event_data, - const vec2 & mouse_pos) { +void InputSystem::handle_move(const EventData & event_data, const vec2 & mouse_pos) { ComponentManager & mgr = this->mediator.component_manager; RefVector<Button> buttons = mgr.get_components_by_type<Button>(); |