Add ALL_EVENTS listeners

This commit is contained in:
Sassa NF
2024-10-12 13:02:01 +01:00
parent c2da28bae6
commit 7f8c08a777
3 changed files with 12 additions and 4 deletions
+7
View File
@@ -177,6 +177,13 @@ void Scan::fireEvent(Event &event)
{
list[i]->onEvent(event);
}
list = eventListeners[(size_t)EventType::ALL_EVENTS];
c = listener_count[(size_t)EventType::ALL_EVENTS];
for (int i = 0; i < c; i++)
{
list[i]->onEvent(event);
}
}
#endif