if (OVRInput.GetDown(OVRInput.Axis1D.PrimaryIndexTrigger)) — Oculus
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

if (OVRInput.GetDown(OVRInput.Axis1D.PrimaryIndexTrigger))

d0raem0n231d0raem0n231 Posts: 5
NerveGear

if (OVRInput.GetDown(OVRInput.Axis1D.PrimaryIndexTrigger))
{
         button = hit.collider.gameObject;
         ExecuteEvents.Execute(button, data, ExecuteEvents.pointerClickHandler);
}



I wonder that what is wrong?



Warning Messeage from Unity Console

NotImplementedException: The method or operation is not implemented.
OVRInput.GetDown (OVRInput+Axis1D primaryIndexTrigger) (at Assets/Oculus/VR/Scripts/OVRInput.cs:1644)
LaserCtrl.Update () (at Assets/Scripts/LaserCtrl.cs:55)

Comments

  • d0raem0n231d0raem0n231 Posts: 5
    NerveGear
    public static bool GetDown(Axis1D primaryIndexTrigger)
        {
            throw new NotImplementedException();
        }


    I don't understand why  :s
  • d0raem0n231d0raem0n231 Posts: 5
    NerveGear
    I found it!

    if (OVRInput.GetDown(OVRInput.Button.PrimaryIndexTrigger, OVRInput.Controller.LTouch))
    {
                        Debug.Log("Click!");               
    }

     :'( 
Sign In or Register to comment.