Ejemplo n.º 1
0
bool Observer::handleEvent( EventICommand& command )
{
    switch( command.getEventType( ))
    {
    case Event::OBSERVER_MOTION:
        return setHeadMatrix( command.get< Matrix4f >( ));
    }
    return false;
}
Ejemplo n.º 2
0
bool View::handleEvent(EventICommand& command)
{
    switch (command.getEventType())
    {
    case EVENT_VIEW_SCREENSHOT:
        return _handleScreenshot(command);
    }
    return false;
}