diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-18 14:44:01 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-18 14:44:01 +0100 |
commit | e20263f4c6b4c354baa301b21a6ac1fb0a7d5848 (patch) | |
tree | aa78cf45d09340559e6789d8fd452ddbd09a8207 /src/test/InputTest.cpp | |
parent | 45c799f71e6f0db1de27bdd601c0d441f0012468 (diff) |
make format
Diffstat (limited to 'src/test/InputTest.cpp')
-rw-r--r-- | src/test/InputTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/InputTest.cpp b/src/test/InputTest.cpp index a7b1b25..975dbd6 100644 --- a/src/test/InputTest.cpp +++ b/src/test/InputTest.cpp @@ -38,6 +38,7 @@ public: EventManager event_manager{mediator}; //GameObject camera; int offset = 100; + protected: void SetUp() override { GameObject obj = mgr.new_object("camera", "camera", vec2{offset, offset}, 0, 1); @@ -216,7 +217,7 @@ TEST_F(InputTest, testButtonClick) { bool button_clicked = false; std::function<void()> on_click = [&]() { button_clicked = true; }; auto & button = button_obj.add_component<Button>(vec2{10, 10}, vec2{0, 0}, on_click); - // button.world_space = + // button.world_space = bool hover = false; button.active = true; this->simulate_mouse_click(999, 999, SDL_BUTTON_LEFT); |