Esempio n. 1
0
 public float GetWandScrollAmount()
 {
     // Check controller scroll direction.
     if (App.VrSdk.VrControls.PrimaryScrollDirectionIsX(ControllerName.Wand))
     {
         return(Wand.GetScrollXDelta());
     }
     return(Wand.GetScrollYDelta());
 }
Esempio n. 2
0
        public float GetToolSelection()
        {
            float fScrollWheel = Input.GetAxis("Mouse ScrollWheel");

            if (Mathf.Abs(fScrollWheel) > m_InputThreshold)
            {
                return(fScrollWheel);
            }

            return(Wand.GetScrollYDelta());
        }