Reply To: Joystick as tracking device?

Home Forums AR Sandbox Forum Joystick as tracking device? Reply To: Joystick as tracking device?

#115654
Oliver Kreylos
Keymaster

Yes, there is a built-in way. You should have a SpaceTraveler.cfg configuration file in /usr/local/etc/Vrui-4.5. It maps several levels of functionality to a six-axis spaceball device. The relevant bit is the SixAxisTransformTool definition. This tool class creates a virtual input device (a cursor) that can be moved by pushing three analog axes. You can bind that tool to three axes on your controller (you’d only be using two of those in the end), and a set of buttons to trigger actions at the cursor’s current position.

Comments are closed.