Search Unity

How to access VR input without SteamVR?

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

  1. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    301
    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;
    }