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/test/InputTest.cpp | |
parent | 16fda1ef8da96c44cec20225cc4427d8eec52827 (diff) |
make format
Diffstat (limited to 'src/test/InputTest.cpp')
-rw-r--r-- | src/test/InputTest.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/test/InputTest.cpp b/src/test/InputTest.cpp index 73a9651..cb9833f 100644 --- a/src/test/InputTest.cpp +++ b/src/test/InputTest.cpp @@ -1,13 +1,13 @@ #include <gtest/gtest.h> #define protected public #define private public -#include "manager/EventManager.h" -#include "manager/ComponentManager.h" #include "api/KeyCodes.h" +#include "manager/ComponentManager.h" +#include "manager/EventManager.h" +#include "manager/Mediator.h" #include "system/InputSystem.h" #include <SDL2/SDL.h> #include <SDL2/SDL_keycode.h> -#include "manager/Mediator.h" #include <crepe/api/Button.h> #include <crepe/api/Camera.h> #include <crepe/api/GameObject.h> @@ -24,17 +24,18 @@ class InputTest : public ::testing::Test { public: Mediator mediator; ComponentManager mgr{mediator}; - + InputSystem input_system{mediator}; EventManager & event_manager = EventManager::get_instance(); //GameObject camera; protected: - void SetUp() override { + void SetUp() override { mediator.event_manager = event_manager; mediator.component_manager = mgr; - event_manager.clear(); } + event_manager.clear(); + } void simulate_mouse_click(int mouse_x, int mouse_y, Uint8 mouse_button) { SDL_Event event; |