summaryrefslogtreecommitdiffhomepage
path: root/editor/tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/tests.cpp')
-rw-r--r--editor/tests.cpp8
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());
}
}