Hi Thomas, On 10 February 2012 18:04, Thomas Lerman <[email protected]> wrote: > I guess I really wish for one of the following things: > > 1) Obviously, a translation happens from Qt to osg on the keystrokes. It > would be nice if I could translate it back to Qt. I realize this might not be > as simple as it sounds as some keys are mapped from one to many. For example, > Qt::Key_Return is mapped to both osgGA:GUIEventAdapter::KEY_Linefeed & > KEY_Return. In this case, it would be nice if I could get the original > Qt::Key_Return returned to me.
Converting from Qt to osgGA to Qt is rather awkward. Why not just catch the events directly from the Qt window and handle there? Events you aren't interested in can just be passed to OSG. > 2) Consistency would really be nicer. The ea.getModKeyMask() is always > correct, but what I am talking about as the inconsistency can be seen below > (obviously, I did not try every combination and hopefully it will be > readable). First of all ea.getUnmodifiedKey() always returns 0x00 (maybe that > is the real problem): Is this when using osgQt? You need to tell us when and where you are seeing this. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

