From 337a957a9e605f16287506b6afda56950e562db3 Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Fri, 15 Nov 2024 12:50:30 +0100 Subject: events example working --- src/example/events.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/example/events.cpp b/src/example/events.cpp index 9c59bb7..ed519ff 100644 --- a/src/example/events.cpp +++ b/src/example/events.cpp @@ -89,12 +89,11 @@ int main() { // Trigger the events while `testListener` is in scope EventManager::get_instance().trigger_event(key_press, 1); - // EventManager::get_instance().trigger_event(MouseClickEvent{ - // .button = MouseButton::LEFT_MOUSE, - // .mouse_y = 100, - // .mouse_x = 100, - - // },1); + EventManager::get_instance().trigger_event(MouseClickEvent{ + .mouse_x = 100, + .mouse_y = 100, + .button = MouseButton::LEFT_MOUSE, + },1); } // custom lambda event handler EventHandler event_handler = [](const KeyPressEvent & e) { -- cgit v1.2.3