diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-03 11:56:29 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-03 11:56:29 +0100 |
commit | 7551c98ee239963ad65123132419c3c0a9cfccb3 (patch) | |
tree | cec2c548bfd4c18707fb820f91701341ea5e37b0 /src/test/InputTest.cpp | |
parent | d1a31a3cafc9aadb047509f5cd8b2befa212add8 (diff) |
world units for click
Diffstat (limited to 'src/test/InputTest.cpp')
-rw-r--r-- | src/test/InputTest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 <crepe/api/Metadata.h> #include <crepe/api/Transform.h> #include <crepe/api/Vector2.h> +#include <crepe/api/Camera.h> #include <gmock/gmock.h> 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<Camera>(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) { |