Renan,

I've been using that same device recently. Viewer::run() I think is a just 
convenience method, so there might not be an elegant way to inject your code 
per frame.

If you are willing to run "viewer::frame()" from an event loop of your creation 
you can simply put your code there.

    Andy


-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Renan Mendes
Sent: Thu 4/3/2008 2:23 PM
To: OSG Mailing List
Subject: [osg-users] New Device Input
 
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() ?

                 Thanks for your tip,

                                   Renan M Z Mendes

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

Reply via email to