Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Marc201's avatar
Marc201
Explorer
6 years ago

Oculus Quest OVRInput - no stable reaction on Thumb or Index Trigger


Code below: I want to use the position of the joystick or secondaryindextrigger. To check its value i placed it in a Text field of a canvas.
But the value is always Zero. Only very seldom it is functioning an the value from 0 to 1 is showing up for the e.g. the index.trigger.

If i use the buttons, all is ok.
I tried to make a little wait for 1 sec after the command... no influence.
(just to make clear: The OvrCameraRig, OvrInputModule, OVRGazePointer, Canvas with OvrRaycaster all is used).

public class ovrInputTest : MonoBehaviour
{
    public Text text;
    void Update()
    {
        text.text = "Hand" + OVRInput.Get(OVRInput.Axis1D.SecondaryIndexTrigger).ToString();
        }

Thanks for Help... yours Marc
No RepliesBe the first to reply