Re: [osg-users] How to capture Keyboard event in OpenSceneGraph

2009-01-21 Thread Alberto Luaces
Hi Dat, I recommend you to peruse the osgkeyboard.cpp file that comes with the source code examples (specifically the classes KeyboardEventHandler and osgGA::GUIEventHandler), and to upgrade to a more recent OSG version (at least 2.6.0). Regards, Alberto El MiƩrcoles 21 Enero 2009ES

[osg-users] How to capture Keyboard event in OpenSceneGraph

2009-01-20 Thread tien dat
Dear all, I have a very basic question of how to capture key pressed event in OpenSceneGraph. My program is set up like this: osgProducer::Viewer *viewer = new osgProducer::Viewer(); //some more initialization here Producer::KeyboardMouse* km = viewer-getKeyboardMouse();