diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-20 18:37:20 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-20 18:37:20 +0200 |
commit | 8ac55a6789a9ed7fdd16dfcbde6133948ad632fc (patch) | |
tree | fdaa667ea93b3d8136dc3e0fea9a43d0d05f2e99 /editor/tests.cpp | |
parent | 275cb79a1857fff08ce1b642bbfab6d7377bcaef (diff) |
a
Diffstat (limited to 'editor/tests.cpp')
-rw-r--r-- | editor/tests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/tests.cpp b/editor/tests.cpp index 706c15eb..a7e86a3f 100644 --- a/editor/tests.cpp +++ b/editor/tests.cpp @@ -51,17 +51,17 @@ void app::tests_post_update() }, tests()); } -bool app::tests_handle_mouse_click(const mouse_button_event& e) +bool app::tests_handle_mouse_click(const mouse_button_event& e, bool is_down) { update_cursor_tile(cursor.pixel); return std::visit(overloaded { [](std::monostate) { return false; }, - [&](base_test& x) { return x.handle_mouse_click(*this, e); } + [&](base_test& x) { return x.handle_mouse_click(*this, e, is_down); } }, tests()); } -bool app::tests_handle_key(const key_event& e) +bool app::tests_handle_key(const key_event& e, bool is_down) { switch (e.key) { @@ -71,7 +71,7 @@ bool app::tests_handle_key(const key_event& e) default: return std::visit(overloaded { [](std::monostate) { return false; }, - [&](base_test& x) { return x.handle_key(*this, e); } + [&](base_test& x) { return x.handle_key(*this, e, is_down); } }, tests()); } } |