[osg-users] "esc" key handler

Robert Osfield robert.osfield at gmail.com
Thu Jul 17 13:28:17 PDT 2008


HI Mike,

As RJ says, the code for set the done flag on the viewer is in the
Viewer::eventTraversal() code, it just catches a keypress, you can
disable the feature by setting the key to 0 via:

  viewer.setKeyEventSetsDone(0);

Robert.


On Thu, Jul 17, 2008 at 8:56 PM, Mike Greene <mgreene at hiwaay.net> wrote:
> Where in the osg source code is the "close down" section for when the user
> hits the "esc" key? I need to be able to replicate the code via a custom
> function, so I'd like to have it as a baseline.
>
>
> Mike Greene
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



More information about the osg-users mailing list