Hey I just started trying to get output from the Oculus touch controller buttons, analog sticks, and triggers in Unity 5.5.0f3. I made a c# script to modify position and rotation of a cube with the touch controllers and output button status to the console.
public class PlayerControllers : MonoBehaviour {
public GameObject rController;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
rController.transform.localPosition = OVRInput.GetLocalControllerPosition(OVRInput.Controller.RTouch);
rController.transform.localRotation = OVRInput.GetLocalControllerRotation(OVRInput.Controller.RTouch);
Debug.Log(OVRInput.Get(OVRInput.Axis1D.SecondaryIndexTrigger));
}
The script is attached to an empty in the scene of which the camera/headset and cube are both children. The rotation and position of the cube changes and works as expected but the button press just reads 0 constantly.
I have also tried it with button presses as well and I just get False the whole time.
There was a test input scene that I found here and when I went to open that scene. I received the following prompt.

I assume that when they say different setup they mean a different version of Unity.
So is there some setting somewhere I need to change? Some asset I need to import that I have not or is it the version of unity.
Side Note: The Oculus headset works and tracks fine in the scene, it’s just the buttons that I can’t get for some reason.
Thank you for any help you can provide.