コード例 #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;
 }
コード例 #3
0
 private static extern int sixenseGetNewestData(int which, out sixenseControllerRawData data);
コード例 #4
0
 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);