Search Unity

Question Vive Primary Button OpenXR

Discussion in 'XR Interaction Toolkit and Input' started by kittik, Jan 8, 2021.

  1. kittik

    kittik

    Joined:
    Mar 6, 2015
    Posts:
    565
    Hi,

    Since upgrading my project from 2019.x to 2020.2 and setting up OpenXR I can no longer access the Primary Button on a Vive controller (above the thumbpad, to be clear). All other Vive inputs are fine, build for Oculus too, all inputs work. Not sure why, its the only button not working for Vive. I've provided images of my projects XR settings below.

    I am using the below CommonUsages, which worked in 2019.
    Code (CSharp):
    1. if (Controller.inputDevice.TryGetFeatureValue(CommonUsages.primaryButton, out bool primaryButton))
    upload_2021-1-8_14-29-20.png
    upload_2021-1-8_14-29-35.png
    upload_2021-1-8_14-29-42.png
     
  2. kittik

    kittik

    Joined:
    Mar 6, 2015
    Posts:
    565
    Still not sure why the primary button is no longer detected. All inputs work fine with Oculus, Vive primary button is the only one that doesn't fire.
     
  3. Matt_D_work

    Matt_D_work

    Unity Technologies

    Joined:
    Nov 30, 2016
    Posts:
    202
    We recommend using the new input system over the "Input Device" API for input with OpenXR. please raise a bug on this and we'll have a look,