From 6454975779acb39d7d546e11855a07a952e68e5b Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Wed, 4 Dec 2024 20:12:34 +0100 Subject: loeks feedback changes --- src/test/InputTest.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/test') diff --git a/src/test/InputTest.cpp b/src/test/InputTest.cpp index 32111c0..f7d1059 100644 --- a/src/test/InputTest.cpp +++ b/src/test/InputTest.cpp @@ -119,8 +119,8 @@ TEST_F(InputTest, MouseMove) { function_triggered = true; EXPECT_EQ(e.mouse_x, 0); EXPECT_EQ(e.mouse_y, 0); - EXPECT_EQ(e.rel_x, 10); - EXPECT_EQ(e.rel_y, 10); + EXPECT_EQ(e.delta_x , 10); + EXPECT_EQ(e.delta_y , 10); return false; }; event_manager.subscribe(on_mouse_move); @@ -223,7 +223,7 @@ TEST_F(InputTest, testButtonClick) { GameObject button_obj = mgr.new_object("body", "person", vec2{0, 0}, 0, 1); bool button_clicked = false; std::function on_click = [&]() { button_clicked = true; }; - auto & button = button_obj.add_component