Hi, What OS are you targeting?
For Linux, I'm in the process of integrating SpacePilot and SpaceExplorer (I'm told SpaceNavigator uses the same protocol) into VRPN, then those devices will be accessible as all the other VRPN input devices using my osgVRPN nodekit. I'm using the Linux "input event subsystem" (aka evdev). The 3Dx devices enumerate as HID, and linux will create /dev/input/event* nodes to communicate. In this way I'm able to avoid the 3Dx driver software entirely. If on Windows, you should probably use their driver software, or interact with the devices as USB HID devices. If you prefer not to use osgVRPN, you can review its code for tips on device integration. fwiw there are lots of cheap SpaceBalls (the generation of serial devices before the current USB devices) on EBay, which work great on both linux and windows via VRPN & osgVRPN. Cheers -- mew Mike Weiblen -- Zebra Imaging -- Austin Texas USA -- http://www.zebraimaging.com/ > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:osg-users- > [EMAIL PROTECTED] On Behalf Of Cervantes Pintor Pedro > Sent: Friday, August 24, 2007 6:28 AM > To: [email protected] > Subject: [osg-users] How to support a new input device? > > 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 > <http://www.lycos.playp.biz/mobringtones/Default.aspx?StoreFrontID=0006- > 0006-1005-0125> . Get 10 Bonus Tones today! _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

