예제 #1
0
	public SixenseControllerData(sixenseControllerRawData data)
	{
		_position = data.Position;
		_rotationAxis = new RotationAxis(data.RotationX, data.RotationY, data.RotationZ);
		_joystick = new Joystick(data.JoystickX, data.JoystickY);
		_trigger = data.Trigger;
		_buttons = new Buttons(data.Buttons);
		_rotationQuaternion = data.RotationQuaternion;
		_isEnabled = data.Enabled == 1 ? true : false;
		_controllerIndex = data.ControllerIndex;
		_isDocked = data.IsDocked == 1 ? true : false;
		_hand = data.WhichHand == 0 ? SixenseControllerHand.LeftHand : SixenseControllerHand.RightHand;
	}
예제 #2
0
 public SixenseControllerData(sixenseControllerRawData data)
 {
     _position           = data.Position;
     _rotationAxis       = new RotationAxis(data.RotationX, data.RotationY, data.RotationZ);
     _joystick           = new Joystick(data.JoystickX, data.JoystickY);
     _trigger            = data.Trigger;
     _buttons            = new Buttons(data.Buttons);
     _rotationQuaternion = data.RotationQuaternion;
     _isEnabled          = data.Enabled == 1 ? true : false;
     _controllerIndex    = data.ControllerIndex;
     _isDocked           = data.IsDocked == 1 ? true : false;
     _hand = data.WhichHand == 0 ? SixenseControllerHand.LeftHand : SixenseControllerHand.RightHand;
 }
 private static extern int sixenseGetNewestData(int which, out sixenseControllerRawData data);
 private static extern int sixenseGetData(int which, int index_back, out sixenseControllerRawData data);
예제 #5
0
	private static extern int sixenseGetNewestData(int which, out sixenseControllerRawData data);
예제 #6
0
	private static extern int sixenseGetData(int which, int index_back, out sixenseControllerRawData data);