Oculus OVR Grabber script. Can I use the Index Trigger instead of the hand Trigger?

I have created a VR scene in Unity for use with the Oculus Rift. I have the OVR Grabber script attached to the hand objects so the user can grab objects, but the script will only let me use the “PrimaryHandTrigger”. I think the “PrimaryIndexTrigger” would be more intuitive. I do not see any way to get the OVR Grabber script to use it. Does anyone know a way to get this script to use the Index Trigger instead of the Hand Trigger?

If anyone look into this, you can find the value at line 150 on OVRGrabber.cs, you just have to change “hand” to “index”

1 Like

Thanks for this! And if you want either to work, you can use:

        m_prevFlex = Mathf.Max(OVRInput.Get(OVRInput.Axis1D.PrimaryIndexTrigger, m_controller), OVRInput.Get(OVRInput.Axis1D.PrimaryHandTrigger, m_controller));
1 Like