Skip to content
Permalink
Browse files

onClick event on mouse release

  • Loading branch information
pka committed Dec 1, 2010
1 parent b0f3d4e commit 5906eef0bca7a5ba112c5481bb5c3e9f0fc43a40
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/plugins/globe/globe_plugin.cpp
@@ -687,6 +687,14 @@ bool NavigationControl::handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActi
}
break;
case osgGA::GUIEventAdapter::RELEASE:
for( ControlEventHandlerList::const_iterator i = _eventHandlers.begin(); i != _eventHandlers.end(); ++i )
{
NavigationControlHandler* handler = dynamic_cast<NavigationControlHandler*>( i->get() );
if( handler )
{
handler->onClick( this, ea.getButtonMask(), ea, aa );
}
}
_mouse_down_event = NULL;
break;
}
@@ -699,7 +707,6 @@ bool NavigationControl::handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActi
if( handler )
{
handler->onMouseDown( this, ea.getButtonMask() );
handler->onClick( this, ea.getButtonMask(), ea, aa );
}
}
}

0 comments on commit 5906eef

Please sign in to comment.
You can’t perform that action at this time.