Getting input from the hardware devices is conceptually the same, but the implementations are quite different between the CAVElibs™ software and VR Juggler.
To get tracking information, the following functions are used:
CAVEGetPosition(id, pos)
CAVEGetOrientation(id,
orient)
CAVEGetVector(id, vec)
CAVEGetSensorPosition(sensor, coords,
pos)
CAVEGetSensorOrientation(sensor, coords,
orient)
CAVEGetSensorVector(sensor, id,
vec)
For button input, the following macros are used:
CAVEBUTTON1,
CAVEBUTTON2,
CAVEBUTTON3,
CAVEBUTTON4,
CAVE_JOYSTICK_X, and
CAVE_JOYSTICK_Y
CAVEButtonChange()
To get device input, use the type-specific instantiations of
gadget::DeviceInterface<T>. They include the following:
For more information about the VR Juggler device interfaces, refer to the section called “Device Proxies and Device Interfaces”. A tutorial on getting device input in VR Juggler applications can be found in the section called “Getting Input”.