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
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();
2 matches
Mail list logo