cancel
Showing results for 
Search instead for 
Did you mean: 

OVRInput.get() functions not working

bbowler982
Level 2

I am trying to write a simple function to get a button click from OVR.Input and the .Get() and .GetDown() functions always return false. The controller works to grab objects with the triggers and the hands and fingers move accordingly in the game so I know the controller is working and getting input. I have the OVRManager script in my scene attached to the OVRCameraRig as well.

 

This code is placed inside the OVRPlayerControllers Update() function. I am not sure what I am missing.

 

OVRInput.Update();
OVRInput.FixedUpdate();

if (OVRInput.Get(OVRInput.Button.One))
{

      Debug.Log("Input Detected Button One");
      if (this.isStanding)
      {
            this.CameraHeight = 0.5f;
            this.isStanding = false;
       }
       else
       {
              this.CameraHeight = 2.0f;
              this.isStanding = true;
        }

}

0 REPLIES 0