aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-12 07:57:24 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-12 07:57:24 +0100
commit73f8d5c558ebc0820ede241e64a876ff1c5ccefb (patch)
treeb3058fc92101a25245e554091e7a6b406372a988 /src/test
parent7029aa426ad91b49459b47043b0d4329e4b0eaee (diff)
seperat ints converted to float
Diffstat (limited to 'src/test')
-rw-r--r--src/test/InputTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/InputTest.cpp b/src/test/InputTest.cpp
index 94549a0..a7058b2 100644
--- a/src/test/InputTest.cpp
+++ b/src/test/InputTest.cpp
@@ -227,7 +227,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{100, 100}, vec2{0, 0}, on_click, false);
+ = button_obj.add_component<Button>(vec2{100, 100}, vec2{0, 0}, on_click);
bool hover = false;
button.active = true;
@@ -251,7 +251,7 @@ TEST_F(InputTest, testButtonHover) {
bool button_clicked = false;
std::function<void()> on_click = [&]() { button_clicked = true; };
auto & button
- = button_obj.add_component<Button>(vec2{100, 100}, vec2{0, 0}, on_click, false);
+ = button_obj.add_component<Button>(vec2{100, 100}, vec2{0, 0}, on_click);
button.active = true;
// Mouse not on button