From Daneil Sjölie - modifications to the support of custom GUIEventHandlers in osgGLUT

This commit is contained in:
Robert Osfield
2002-10-07 09:41:30 +00:00
parent 70861ef70e
commit 65934ef824
4 changed files with 44 additions and 26 deletions

View File

@@ -187,7 +187,7 @@ int main( int argc, char **argv )
viewer.addViewport(rootNode);
// register additional event handler
viewer.addEventHandler(osgNew MyEventHandler(&seq), 0);
viewer.prependEventHandler(osgNew MyEventHandler(&seq), 0);
// register trackball, flight and drive.
viewer.registerCameraManipulator(new osgGA::TrackballManipulator);