diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-15 12:43:38 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-15 12:43:38 +0100 |
commit | cab672ce6258aec563e7f0e0549281156c0c8d21 (patch) | |
tree | e4b825c5fed4282672aeb18d4bd405710f20349d /src/example/events.cpp | |
parent | 22a3ba4d0773d6010704ec494a08f5d95f564a94 (diff) |
feedback
Diffstat (limited to 'src/example/events.cpp')
-rw-r--r-- | src/example/events.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/example/events.cpp b/src/example/events.cpp index 51c9a37..9c59bb7 100644 --- a/src/example/events.cpp +++ b/src/example/events.cpp @@ -70,7 +70,7 @@ int main() { key_press.key = Keycode::A; key_press.repeat = 0; MouseClickEvent click_event; - click_event.button = MouseButton::Left_Mouse; + click_event.button = MouseButton::LEFT_MOUSE; click_event.mouse_x = 100; click_event.mouse_y = 200; // queue events to test queue @@ -89,8 +89,12 @@ int main() { // Trigger the events while `testListener` is in scope EventManager::get_instance().trigger_event<KeyPressEvent>(key_press, 1); - EventManager::get_instance().trigger_event<MouseClickEvent>(click_event, - 1); + // EventManager::get_instance().trigger_event<MouseClickEvent>(MouseClickEvent{ + // .button = MouseButton::LEFT_MOUSE, + // .mouse_y = 100, + // .mouse_x = 100, + + // },1); } // custom lambda event handler EventHandler<KeyPressEvent> event_handler = [](const KeyPressEvent & e) { |