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

How to access VR input without SteamVR?

Discussion in 'VR' started by dienat, May 24, 2019.

  1. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    417
    I am trying to access the builtin inputmanager data, i am trying to check if the touchpad is pressed, i looked this table https://docs.unity3d.com/Manual/OpenVRControllers.html and says i must use 8 and 9 button ids, i used this method, but it is always false when i press the htc vive touchpad

    public bool getTouchPadHeld()
    {
    if (Input.GetButton("HTC_VIU_UnityAxis8") || Input.GetButton("HTC_VIU_UnityAxis9")) return true;
    else return false;
    }