예제 #1
0
        //-------------------------------------------------
        // Cycles through all the button hints on the controller
        //-------------------------------------------------
        private IEnumerator TestButtonHints(Hand hand)
        {
            ControllerButtonHints.HideAllButtonHints(hand);

            while (true)
            {
                ControllerButtonHints.ShowButtonHint(hand, EVRButtonId.k_EButton_ApplicationMenu);
                yield return(new WaitForSeconds(1.0f));

                ControllerButtonHints.ShowButtonHint(hand, EVRButtonId.k_EButton_System);
                yield return(new WaitForSeconds(1.0f));

                ControllerButtonHints.ShowButtonHint(hand, EVRButtonId.k_EButton_Grip);
                yield return(new WaitForSeconds(1.0f));

                ControllerButtonHints.ShowButtonHint(hand, EVRButtonId.k_EButton_SteamVR_Trigger);
                yield return(new WaitForSeconds(1.0f));

                ControllerButtonHints.ShowButtonHint(hand, EVRButtonId.k_EButton_SteamVR_Touchpad);
                yield return(new WaitForSeconds(1.0f));

                ControllerButtonHints.HideAllButtonHints(hand);
                yield return(new WaitForSeconds(1.0f));
            }
        }
예제 #2
0
        //-------------------------------------------------
        public static void HideAllButtonHints(Hand hand)
        {
            ControllerButtonHints hints = GetControllerButtonHints(hand);

            if (hints != null)
            {
                hints.HideAllButtonHints();
            }
        }
예제 #3
0
        public static void HideAllButtonHints(Hand hand)
        {
            ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand);

            if (controllerButtonHints != null)
            {
                controllerButtonHints.HideAllButtonHints();
            }
        }
예제 #4
0
 // Token: 0x06005DE8 RID: 24040 RVA: 0x0020DC9C File Offset: 0x0020C09C
 public void DisableHints()
 {
     if (this.buttonHintCoroutine != null)
     {
         base.StopCoroutine(this.buttonHintCoroutine);
         this.buttonHintCoroutine = null;
     }
     if (this.textHintCoroutine != null)
     {
         base.StopCoroutine(this.textHintCoroutine);
         this.textHintCoroutine = null;
     }
     foreach (Hand hand in Player.instance.hands)
     {
         ControllerButtonHints.HideAllButtonHints(hand);
         ControllerButtonHints.HideAllTextHints(hand);
     }
 }
예제 #5
0
        //-------------------------------------------------
        public void DisableHints()
        {
            if (buttonHintCoroutine != null)
            {
                StopCoroutine(buttonHintCoroutine);
                buttonHintCoroutine = null;
            }

            if (textHintCoroutine != null)
            {
                StopCoroutine(textHintCoroutine);
                textHintCoroutine = null;
            }

            foreach (var hand in Player.instance.hands)
            {
                ControllerButtonHints.HideAllButtonHints(hand);
                ControllerButtonHints.HideAllTextHints(hand);
            }
        }
예제 #6
0
        // Token: 0x06005DE9 RID: 24041 RVA: 0x0020DD14 File Offset: 0x0020C114
        private IEnumerator TestButtonHints(Hand hand)
        {
            ControllerButtonHints.HideAllButtonHints(hand);
            for (;;)
            {
                ControllerButtonHints.ShowButtonHint(hand, new EVRButtonId[]
                {
                    EVRButtonId.k_EButton_ApplicationMenu
                });
                yield return(new WaitForSeconds(1f));

                ControllerButtonHints.ShowButtonHint(hand, new EVRButtonId[1]);
                yield return(new WaitForSeconds(1f));

                ControllerButtonHints.ShowButtonHint(hand, new EVRButtonId[]
                {
                    EVRButtonId.k_EButton_Grip
                });
                yield return(new WaitForSeconds(1f));

                ControllerButtonHints.ShowButtonHint(hand, new EVRButtonId[]
                {
                    EVRButtonId.k_EButton_Axis1
                });
                yield return(new WaitForSeconds(1f));

                ControllerButtonHints.ShowButtonHint(hand, new EVRButtonId[]
                {
                    EVRButtonId.k_EButton_Axis0
                });
                yield return(new WaitForSeconds(1f));

                ControllerButtonHints.HideAllButtonHints(hand);
                yield return(new WaitForSeconds(1f));
            }
            yield break;
        }