[osg-users] esc key handler

2008-07-17 Thread Mike Greene
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

Re: [osg-users] esc key handler

2008-07-17 Thread Rahul Jain
Mike U can look at the code eventTraversal() in Viewer.cpp at line number 501. This is where viewer is set to be done ones you press esc key. RJ Mike Greene 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

Re: [osg-users] esc key handler

2008-07-17 Thread Robert Osfield
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 [EMAIL