add event target
This commit is contained in:
@@ -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); });
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
// реализация см. в проекте
|
||||
|
||||
Reference in New Issue
Block a user