Hi Martin, I have just done a review of your changes and can't spot any changes to the key press code that I'd expect, any chance that you sent the wrong file? The GraphicsWindowQt.cpp file has changed since you submitted, so could you have a look at svn/trunk and make changes to if still required.
Also as a general note the key.toLowerCase seems like a poor exproximation to unmofied key. What happens when the ctrl or alt key is pressed? Robert. On 26 February 2013 08:22, Martin Scheffler <[email protected]> wrote: > Hi, > > GraphicsWindowQt forwards Qt key events to OSG. It calls > osgGA::EventQueue::keyPress(key, unmodifiedKey) but does not set the > unmodifiedKey parameter, giving it a default value of 0. > > The attached fix sets the unmodifiedKey value to key.toLowerCase. This is > very useful for when the shift key is used in a motion model for speed > control (like in most FPS games) > > Thank you! > > Cheers, > Martin > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=52877#52877 > > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
