Hi Pedro, You needn't integrate the new device in an OSG centric way at all, you can just poll the device yourself in your main loop and then do what you want with it.
Potentially you could integrate it on an OSG centric way to make use of the existing manipulators, and I've done this in the past to make a joystick work with the standard manipulators. The way to do it is to call one of the osgGA::EventQueue methods to adapt your events. One can pass in custom event i.e you own subclassed from osgGA::GUIEventAdapter, but you only need to do this is you want to an extra variables. The Viewer and GraphicsWindow both have an EventQueue that you can insert events in by. Robert. On 8/24/07, Cervantes Pintor Pedro <[EMAIL PROTECTED]> wrote: > Hi, > > > I just got one of those SpaceNavigators from Siggraph and I thought it could > be so nice to use it as an input device on OSG so... I've been looking for > some low level calls in the OSG source code to have a hint where to start > but it was useless, so can someone please give me a quick guideline on what > should I do to add support for a new device ? > > I'm expecting some answers like: "use class osgGA::event as a base for your > low level calls and then create a class derived from > osgGA::turboMyBestManipulator and then... etc". > > Ideally I'd like to add the support for this and possibly other devices in a > general purpose way like adding the support directly to > osgGA::GUIEventHandler so it can be incorporated someday into the main OSG > distribution. > > I'm not expecting to know everything in a weekend (nor even in one or two > months) I just want a starting point to begin my research. > > Thanks in advance > > Pedro > > ________________________________ > > Looking for the Hottest New Ringtones? > Find them at Lycos Mobile. Get 10 Bonus Tones today! > _______________________________________________ > 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

