diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-18 16:55:21 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-18 16:55:21 +0100 |
commit | 92e83ded2b6afb26082d7661c28af1d9d4e950a2 (patch) | |
tree | f03fe4f0f19efb4a96d79615d98e2af501550f00 /src/example/events.cpp | |
parent | 0e8fcca228e4a55c9553afc5dfed3a38f4c53a91 (diff) |
added mouse and key event triggering
Diffstat (limited to 'src/example/events.cpp')
-rw-r--r-- | src/example/events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/example/events.cpp b/src/example/events.cpp index 6431c67..1b9ea45 100644 --- a/src/example/events.cpp +++ b/src/example/events.cpp @@ -56,12 +56,12 @@ public: bool on_key_pressed(const KeyPressEvent & event) override { std::cout << "TestKeyListener: Key Pressed - Code: " << static_cast<int>(event.key) << std::endl; - return true; // Return true if the listener should remain active + return false; } bool on_key_released(const KeyReleaseEvent & event) override { std::cout << "TestKeyListener: Key Released - Code: " << static_cast<int>(event.key) << std::endl; - return true; + return false; } }; int main() { |