From 7551c98ee239963ad65123132419c3c0a9cfccb3 Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Tue, 3 Dec 2024 11:56:29 +0100 Subject: world units for click --- src/test/InputTest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/test/InputTest.cpp') diff --git a/src/test/InputTest.cpp b/src/test/InputTest.cpp index 4f6077b..9725836 100644 --- a/src/test/InputTest.cpp +++ b/src/test/InputTest.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include using namespace std; @@ -26,7 +27,10 @@ public: EventManager & event_manager = EventManager::get_instance(); protected: - void SetUp() override { event_manager.clear(); } + void SetUp() override { + event_manager.clear(); + // GameObject camera = mgr.new_object(Color{0,0,0,0},ivec2{0,0},vec2{500,500},0,vec2{0,0}); + } void simulate_mouse_click(int mouse_x, int mouse_y, Uint8 mouse_button) { SDL_Event event; @@ -47,6 +51,7 @@ protected: event.button.button = mouse_button; SDL_PushEvent(&event); } + GameObject camera; }; TEST_F(InputTest, MouseDown) { -- cgit v1.2.3