events.cpp

Event definition

Template Parameters
Argsaguments types to send when the event is triggered
#include <iostream>
#include <turbo/Engine.hpp>
int main() {
turbo::EventHandler<unsigned int, float> event_handler([](unsigned int i, float j) {
std::cout << "i: " << i << ", j: " << j << std::endl;
});
testEvent += event_handler;
testEvent(4, -4.84);
testEvent(8, 17.5);
testEvent(19, 0.1);
return 0;
}
Definition: EventHandler.hpp:13
Definition: Event.hpp:16