cancel
Showing results for 
Search instead for 
Did you mean: 

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

d0raem0n231
Explorer

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)
2 REPLIES 2

d0raem0n231
Explorer
public static bool GetDown(Axis1D primaryIndexTrigger)
    {
        throw new NotImplementedException();
    }


I don't understand why  :s

d0raem0n231
Explorer
I found it!

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

 :'(