Пример #1
0
    // RIFT RESET ORIENTATION

    // UpdateResetOrientation
    void UpdateResetOrientation()
    {
        if (((sShowLevels == false) && (OVRGamepadController.GetDPadDown() == true)) ||
            (Input.GetKeyDown(KeyCode.B) == true))
        {
            OVRDevice.ResetOrientation(0);
        }
    }
Пример #2
0
    // RIFT RESET ORIENTATION

    // UpdateResetOrientation
    void UpdateResetOrientation()
    {
        if (((ScenesVisible == false) &&
             (OVRGamepadController.GPC_GetButton((int)OVRGamepadController.Button.Down) == true)) ||
            (Input.GetKeyDown(KeyCode.B) == true))
        {
            OVRDevice.ResetOrientation(0);
        }
    }
Пример #3
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         if (OVRDevice.IsHMDPresent())
         {
             OVRDevice.ResetOrientation(0);
         }
     }
 }
 /// <summary>
 /// Check input and reset orientation if necessary
 /// See the input mapping setup in the Unity Integration guide
 /// </summary>
 void Update()
 {
     // NOTE: some of the buttons defined in OVRGamepadController.Button are not available on the Android game pad controller
     if (Input.GetButtonDown(OVRGamepadController.ButtonNames[(int)resetButton]))
     {
         //*************************
         // reset orientation
         //*************************
         OVRDevice.ResetOrientation();
     }
 }
Пример #5
0
 public void Update()
 {
     if (s_OculusRiftActive)
     {
         if (Input.GetKeyDown(KeyCode.F2))
         {
             for (int i = 0; i < OVRDevice.SensorCount; ++i)
             {
                 OVRDevice.ResetOrientation(i);
             }
         }
     }
 }
Пример #6
0
 void Start()
 {
     SetupUi();
     OVRDevice.ResetOrientation();
     // gets the renderer of the child, parent is an empty controller
     selectionPlaneRenderer = selectionPlane.GetChild(0).renderer;
     // get instance of output box.
     manager      = (uiManager)manageSource.GetComponent(typeof(uiManager));
     textVal      = textBox.GetComponent <Text>();
     textVal.text = "";
     eqInfo       = GraphData.gd;
     transform.parent.gameObject.SetActive(false);
 }