Beispiel #1
0
        /*--------------------------------------------------------------------------------------------*/
        public void Update()
        {
            if (!CursorUtil.FindCursorReference(this, ref CursorDataProvider, true))
            {
                return;
            }

            if (!Application.isPlaying)
            {
                return;
            }

            CursorDataProvider.MarkAllCursorsUnused();

            Look.UpdateData(CursorDataProvider);

            LeftPalm.UpdateData(CursorDataProvider);
            LeftThumb.UpdateData(CursorDataProvider);
            LeftIndex.UpdateData(CursorDataProvider);
            LeftMiddle.UpdateData(CursorDataProvider);
            LeftRing.UpdateData(CursorDataProvider);
            LeftPinky.UpdateData(CursorDataProvider);

            RightPalm.UpdateData(CursorDataProvider);
            RightThumb.UpdateData(CursorDataProvider);
            RightIndex.UpdateData(CursorDataProvider);
            RightMiddle.UpdateData(CursorDataProvider);
            RightRing.UpdateData(CursorDataProvider);
            RightPinky.UpdateData(CursorDataProvider);

            CursorDataProvider.ActivateAllCursorsBasedOnUsage();
        }
Beispiel #2
0
        /*--------------------------------------------------------------------------------------------*/
        public void Update()
        {
            if (!CursorUtil.FindCursorReference(this, ref CursorDataProvider, true))
            {
                return;
            }

            if (!Application.isPlaying)
            {
                return;
            }

            CursorDataProvider.MarkAllCursorsUnused();
            UpdateCursorsWithControllers();
            Look.UpdateData(CursorDataProvider);
            CursorDataProvider.ActivateAllCursorsBasedOnUsage();
        }
Beispiel #3
0
        /*--------------------------------------------------------------------------------------------*/
        public void Update()
        {
            if (!CursorUtil.FindCursorReference(this, ref CursorDataProvider, true))
            {
                return;
            }

            if (!Application.isPlaying)
            {
                return;
            }

            CursorDataProvider.MarkAllCursorsUnused();
            UpdateCursorsWithHands(LeapServiceProvider.CurrentFrame.Hands);
            Look.UpdateData(CursorDataProvider);
            CursorDataProvider.ActivateAllCursorsBasedOnUsage();
        }
        /*--------------------------------------------------------------------------------------------*/
        public void Update()
        {
            if (!InputModuleUtil.FindCursorReference(this, ref CursorDataProvider, true))
            {
                return;
            }

            if (!Application.isPlaying)
            {
                return;
            }

            CursorDataProvider.MarkAllCursorsUnused();
            UpdateCursorsWithHands(LeapControl.GetFrame().Hands);
            Look.UpdateData(CursorDataProvider);
            CursorDataProvider.ActivateAllCursorsBasedOnUsage();
        }