Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Vive Trigger goes from 0.25 to 1.0

Discussion in 'VR' started by neil_sublime, Aug 7, 2019.

  1. neil_sublime

    neil_sublime

    Joined:
    Jul 9, 2018
    Posts:
    17
    Hi,

    We're using Unity's XR Input and the OpenVR 1.0.5 package, and we've recently noticed that the triggers on our Vive controllers are behaving oddly.

    They used to go from 0.0 (unpressed) to 0.8 (just before the physical click) and 1.0 (fully depressed, after the click). On two of our three PCs, they now jump immediately from 0.25 to 1.0 when the trigger is only slightly pressed.

    The XR input is also reporting that the trigger button is clicked when the trigger value is 1, so we can't use that as a workaround.

    Here's how we're reading the values from the device:

    UnityEngine.XR.InputDevice device;
    float trigger;
    bool triggerButton;
    // ...
    device.TryGetFeatureValue(CommonUsages.trigger, out trigger); // 0.0 to 0.2, then 1.0
    device.TryGetFeatureValue(CommonUsages.triggerButton, out triggerButton); // Always true if trigger is 1.0

    After much testing, the only difference we can see is that the correctly working PC is using an old version of the SteamVR app (1.5.16) and the broken ones are using the latest (1.16.10). We tried updating one of the broken ones to the latest SteamVR beta (1.7.1), but this hasn't fixed the issue. We also tried different versions of Unity (2019.1.4, 2019.1.13 and 2019.2.0), but that made no difference.

    I realise that this is likely to be a SteamVR bug rather than an issue with Unity, but wanted to see if anyone has any workarounds, or can suggest the best way to report the problem. Is it worth raising it via Unity's bug reporting tool?

    Thanks for any assistance.
     
    ROBYER1 likes this.
  2. check_marc

    check_marc

    Joined:
    Jan 26, 2013
    Posts:
    55
    Having the same issue, did you ever find a solution?
     
  3. neil_sublime

    neil_sublime

    Joined:
    Jul 9, 2018
    Posts:
    17
    Yes actually, I should have come back here with an update, sorry about that.

    The 1.7.2 beta version of SteamVR fixed the issue, the day after I posted. You can opt-in to the beta via Steam (Library > SteamVR > right-click > Properties > Betas) which should auto-update to the latest version (currently 1.7.7 beta).

    Hopefully it won't take too long for them to get a release version out.
     
    pjbaron and K_Kinukawa like this.