On Thu, 2008-04-03 at 15:23 -0300, Renan Mendes wrote:
> Hi,
> 
>      I'm working on a project that requires the use of a new input
> device, called space navigator. I have the method that gets the 6
> coordinates from it. I'd like to know how to get it at every frame. I
> thought of using a callback, but it doesn't seem right, for the object
> from that class is not conceptually a osg::Node. Can I include it in
> my viewer.run() ?

It sounds like what you really want is a subclass of
osgGA::GUIEventHandler that queries the device on each FRAME event.
Then, you add your handler to the viewer, just like the
TrackballManipulator object. I do this regularly in osgWidget.

>                  Thanks for your tip,
> 
>                                    Renan M Z Mendes
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to