From 570acb7e9258edcd6a06fff4dd2ce0ff12a3e873 Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Thu, 28 Nov 2024 09:01:37 +0100 Subject: added on_enter and on_hover --- src/test/InputTest.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/test/InputTest.cpp') diff --git a/src/test/InputTest.cpp b/src/test/InputTest.cpp index d6ebb6f..2467839 100644 --- a/src/test/InputTest.cpp +++ b/src/test/InputTest.cpp @@ -1,5 +1,6 @@ #include #define protected public +#define private public #include "api/EventManager.h" #include "api/KeyCodes.h" #include "system/InputSystem.h" @@ -188,13 +189,13 @@ TEST_F(InputTest, MouseClick) { TEST_F(InputTest, testButtonClick) { GameObject obj = mgr.new_object("body", "person", vec2{0, 0}, 0, 1); - - auto & button = obj.add_component