Search Unity

CommonUsages.menuButton doesn't correspond to Vive controller menu button?

Discussion in 'VR' started by TheRedMezek, Jun 8, 2019.

  1. TheRedMezek

    TheRedMezek

    Joined:
    Mar 7, 2017
    Posts:
    4
    Hi all,

    I've been working on an input system for my Unity VR framework, and I've been absolutely loving the new features in 2019.1. Getting input through an InputDevice and CommonUsages has been a breeze. However, I can't figure out how to get input from the Vive's menu button (not the System button, I mean the one above the trackpad). CommonUsages.menuButton should do it, but it's always false, and I can't find anything else in CommonUsages that would correspond to the Vive controller menu button (I tried a couple things but nothing worked). I know that the buttons work on my controllers since I can use them in various games, but I can't get their state in Unity.

    Is there a different way I'm supposed to get the state of the Vive controller menu buttons? Is this a problem in Unity's code?
     
  2. StayTalm_Unity

    StayTalm_Unity

    Unity Technologies

    Joined:
    May 3, 2017
    Posts:
    60
    The Sandwich icon one, above the Trackpad?
    It's mapped under CommonUsages.primaryButton. This is somewhat due to existing OpenVR mappings, and manufacturer's wanting to share the minimum spec of buttons.
     
  3. TheRedMezek

    TheRedMezek

    Joined:
    Mar 7, 2017
    Posts:
    4
    That was it, thank you!
     
    StayTalm_Unity likes this.