Hi all,
I'm trying to add a Modkey event handler to my application with osg and
qt4. But it seems that the getModKeyMask() fuction fails to work. Return
value of getModKeyMask() always is 0, even if I have a MODKEY pressed. And,
this is my code:
if ( ea.getEventType() == osgGA::GUIEventAdapter::PUSH &&
ea.getButtonMask() == osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON
&&
ea.getModKeyMask() == osgGA::GUIEventAdapter::MODKEY_SHIFT )
{
/*---------------------------------------------
do something here
-------------------------------------------------*/
}
How can I handle it? Thanks in advance!
cheers
legeo
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org