-
Notifications
You must be signed in to change notification settings - Fork 17
VRPNDevice
Arthur Nishimoto edited this page Aug 1, 2013
·
2 revisions
This creates a VRPN server to stream controller events as a VRPN Input Gamepad. This is currently part of the oinputserver application and not yet an independent service. This is exclusively used to send controller/wand events to CalVR.
The following Omicron controller/wand event mapping to VRPN Gamepad was designed to easily convert from CalVR's gyromouse button mapping to using the PlayStation Navigation controller's buttons. Having Omicron Button 6 and 7 mapped to Button 2 allows for the analog button to emulate the middle mouse button and allow analog trigger L2 to function for CalVR navigation.
-
Channel 0
: - Omicron
ExtraDataFloat 0
: Left Analog Stick (-left, +right) -
Channel 1
: - Omicron
ExtraDataFloat 1
: Left Analog Stick (-up, +down) -
Button 0
: - Omicron
Button 3
(PS Navigation Cross button emulating 'left mouse button') -
Button 1
: - Omicron
Button 2
(PS Navigation Circle button emulating 'right mouse button') -
Button 2
: - Omicron
Button 6
and Omicron Button 7 (PS Navigation Analog button and L2 trigger emulating 'middle mouse button') -
Button 3
: - Omicron
Button Up
-
Button 4
: - Omicron
Button Down
-
Button 5
: - Omicron
Button Left
-
Button 6
: - Omicron
Button Right
-
serverPort (int)
: Port number VRPN clients will connect to -
vrpnTrackerName (string)
: Device name client will use to get the device data -
vrpnTrackerPort (int)
: Port client will use to get the device data