[opensource-dev] question SL tracking data

Jonathan Welch jhwelch at gmail.com
Thu May 26 10:20:54 PDT 2011


The relevant block of code for the Space Navigator and related devices
seems to be
bool LLViewerJoystick::isLikeSpaceNavigator() const
{
#if LIB_NDOF	
	return (isJoystickInitialized()
			&& (strncmp(mNdofDev->product, "SpaceNavigator", 14) == 0
				|| strncmp(mNdofDev->product, "SpaceExplorer", 13) == 0
				|| strncmp(mNdofDev->product, "SpaceTraveler", 13) == 0
				|| strncmp(mNdofDev->product, "SpacePilot", 10) == 0));
#else
	return false;
#endif
}

So if your device is not one of those names it probably won't be
recognized as a Space Navigator-like device.  I

It would be possible to add its name to this list and then to see if
it works with the viewer.

If there are more devices like the space navigator out there moving
all these names to an xml file would make it much easier to add
devices to the list.

-Jonathan


More information about the opensource-dev mailing list