----------------------------------------------------------------------------- Post an event to the EventManager's queue. @param event The event to post. @param data Various data associated with the event. @return Whether or not the message was dispatched successfully. -----------------------------------------------------------------------------
| 251 | /// @return Whether or not the message was dispatched successfully. |
| 252 | //----------------------------------------------------------------------------- |
| 253 | bool EventManager::postEvent( const char* event, const char* data ) |
| 254 | { |
| 255 | AssertFatal( mQueue != NULL, "EventManager::postEvent - Queue not initialized" ); |
| 256 | return Dispatcher::dispatchMessage( mQueue, event, data ); |
| 257 | } |
| 258 | |
| 259 | //----------------------------------------------------------------------------- |
| 260 | /// Subscribe a listener to an event. |
no test coverage detected