add double click mouse event impl
This commit is contained in:
@@ -31,6 +31,12 @@ namespace sandbox
|
||||
|
||||
void test_panel::on_event(VE::event e)
|
||||
{
|
||||
if (e.m_type.type() == typeid(VE::event_type))
|
||||
{
|
||||
auto t = std::any_cast<VE::event_type>(e.m_type);
|
||||
if (t == VE::event_type::MOUSE_BUTTON_DOUBLE_PRESSED) hack::log()("double");
|
||||
if (t == VE::event_type::MOUSE_BUTTON_PRESSED) hack::log()("once");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user