aboutsummaryrefslogtreecommitdiff
path: root/src/test/InputTest.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-17 20:12:54 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-17 20:12:54 +0100
commitf68fdab4d46cea640fe1a40266ef1cd32e6d7426 (patch)
treedd31829c60dcb7000949621b762ac1b1624e03ac /src/test/InputTest.cpp
parenteb9c76082d7d0ee0c3e55cb8eadfa5f8978bd8f2 (diff)
make format
Diffstat (limited to 'src/test/InputTest.cpp')
-rw-r--r--src/test/InputTest.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/test/InputTest.cpp b/src/test/InputTest.cpp
index 6c40235..097667a 100644
--- a/src/test/InputTest.cpp
+++ b/src/test/InputTest.cpp
@@ -217,8 +217,7 @@ TEST_F(InputTest, testButtonClick) {
button_clicked = true;
EXPECT_EQ(event.meta_data.game_object_id, button_obj.id);
return false;
- }
- );
+ });
auto & button = button_obj.add_component<Button>(vec2{100, 100}, vec2{0, 0});
bool hover = false;
@@ -241,14 +240,12 @@ TEST_F(InputTest, testButtonHover) {
button_hover = true;
EXPECT_EQ(event.meta_data.game_object_id, button_obj.id);
return false;
- }
- );
+ });
event_manager.subscribe<ButtonExitEvent>([&](const ButtonExitEvent & event) {
button_hover = false;
EXPECT_EQ(event.meta_data.game_object_id, button_obj.id);
return false;
- }
- );
+ });
auto & button = button_obj.add_component<Button>(vec2{100, 100}, vec2{0, 0});
button.active = true;
// Mouse on button
@@ -279,6 +276,4 @@ TEST_F(InputTest, testButtonHover) {
event_manager.dispatch_events();
EXPECT_FALSE(button.hover);
EXPECT_FALSE(button_hover);
-
-
}