add event target

This commit is contained in:
chatlanin
2025-01-30 23:10:34 +03:00
parent a998115414
commit 5155fdbd49
11 changed files with 31 additions and 22 deletions

View File

@@ -48,7 +48,7 @@ namespace VE
for (const auto l : m_layers_stack) l->set_event_fn(VE_EVENT_FN);
}
void application::on_event(event& e)
void application::on_event(event e)
{
if (e.is_parallele)
for (auto l : m_layers_stack) auto future = std::async(std::launch::async, [&]() { l->on_event(e); });

View File

@@ -36,7 +36,7 @@ namespace VE
void clear();
void attach_layers();
void set_event_fn();
void on_event(event& e);
void on_event(event e);
};
// реализация см. в проекте