On Wednesday 26 Sep 2012 11:33:44 Max Sergeev wrote: > Allright, I think I've got another, more global question: is there a way to > make OSG ignore all keypresses, all keyboard events? Just like this, so it > would not react on S, W or even Escape keypresses
You can stop a Viewer from exiting on Escape by calling viewer.setKeyEventSetsDone(0); on it. The osgvnc example is using this, for instance. See the ViewerBase documentation for more information about this. HTH, Magnus > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=50309#50309 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

