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

2009-01-21 Thread tien dat
Thank you Alberto. I'll give it a try and let you know if I have any question. Dat On Wed, Jan 21, 2009 at 2:35 AM, Alberto Luaces wrote: > Hi Dat, > > I recommend you to peruse the "osgkeyboard.cpp" file that comes with the > source code examples (specifically the classes "KeyboardEventHandler"

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 06

[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(); Producer::RenderS