コード例 #1
0
        void Update()
        {
            A.pressed = OculusTouchInput.GetRightAPress();
            A.touch   = OculusTouchInput.GetRightATouch();

            B.pressed = OculusTouchInput.GetRightBPress();
            B.touch   = OculusTouchInput.GetRightBTouch();

            leftThumbstick.x = OculusTouchInput.GetLeftThumbstickHorizontal();
            leftThumbstick.y = OculusTouchInput.GetLeftThumbstickVertical();

            rightThumbstick.x = OculusTouchInput.GetRightThumbstickHorizontal();
            rightThumbstick.y = OculusTouchInput.GetRightThumbstickVertical();

            leftTrigger  = OculusTouchInput.GetLeftIndex();
            rightTrigger = OculusTouchInput.GetRightIndex();
        }
コード例 #2
0
 // Update is called once per frame
 void Update()
 {
     car.steerRight(OculusTouchInput.GetLeftThumbstickHorizontal() * rotateAmount);
     car.GoForward(OculusTouchInput.GetLeftIndex() * tranSpeed);
 }
コード例 #3
0
 // Update is called once per frame
 void Update()
 {
     plane.Forward(OculusTouchInput.GetLeftIndex() * thrust);
     plane.Roll(OculusTouchInput.GetLeftThumbstickVertical() * roll);
     plane.Pitch(OculusTouchInput.GetLeftThumbstickHorizontal() * pitch);
 }