Hi,

I embeded osg in Qt in my program.Now I implement a class 
ManipulatorEventHndler to interact with the object in the view. But in my codes 
below

> bool ManipulatorEventHandler::handle(const osgGA::GUIEventAdapter& ea, 
> osgGA::GUIActionAdapter& aa,
>             osg::Object*, osg::NodeVisitor*)
> {
> 
>     bool alt = (ea.getModKeyMask() & 
> (osgGA::GUIEventAdapter::MODKEY_LEFT_ALT|osgGA::GUIEventAdapter::MODKEY_RIGHT_ALT))
>  != 0;
>     if (alt) return false;
>     if (ea.getEventType() == osgGA::GUIEventAdapter::KEYDOWN)
>     {
>         switch (ea.getKey())
>         {
>       case 'd': deleteSelectedNode(); break;
>         }
>     }

when i press alt key there is no reponse in my program,but i press 'd' key it 
works. I don't know why. As i use Qt, is there something wrong when i implement 
the ManipulatorEventHandler?Hope someone can help to solve this problem. Thank 
you very very much.

Thank you!

Cheers,
ramy

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41850#41850





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to