handle_event(inEventType, inEventData) in Ruby - Developer implements to handle one or more types of events. The developer using the Pixel Dust Framework must implement this method to handle events. Each handler is invoked only for the event types it was actually registered for using EventManager::addHandler(). You can register a handler multiple times for different events, or register to receive all events.
- Warning
- You must catch any exceptions in handleEvent, it cannot throw exceptions.
- Parameters
-
inEventType | the type of event you are expected to handle
(ie: pdg::eventType_Startup, pdg::eventType_Shutdown, etc...) [C++]
(PDG::EventType_Startup, PDG::EventType_Shutdown, etc..) [Ruby] |
inEventData | the data for the event you are expected to handle |
- Returns
- you should true from your handleEvent method if the event has been completely handled and no other handlers should receive it, or false if other handlers should still get an opportunity to handle it
- See Also
- EventManager