Beispiel #1
0
        public void RegisterVirtualButton(CrossPlatformInputManager.VirtualButton button)

        {
            // check if already have a buttin with that name and log an error if we do

            if (m_VirtualButtons.ContainsKey(button.name))

            {
                Debug.LogError("There is already a virtual button named " + button.name + " registered.");
            }

            else

            {
                // add any new buttons

                m_VirtualButtons.Add(button.name, button);



                // if we dont want to match to the input manager then always use a virtual axis

                if (!button.matchWithInputManager)

                {
                    m_AlwaysUseVirtual.Add(button.name);
                }
            }
        }
Beispiel #2
0
 // Token: 0x06000ADC RID: 2780 RVA: 0x0003F75C File Offset: 0x0003DB5C
 public void RegisterVirtualButton(CrossPlatformInputManager.VirtualButton button)
 {
     if (this.m_VirtualButtons.ContainsKey(button.name))
     {
         Debug.LogError("There is already a virtual button named " + button.name + " registered.");
     }
     else
     {
         this.m_VirtualButtons.Add(button.name, button);
         if (!button.matchWithInputManager)
         {
             this.m_AlwaysUseVirtual.Add(button.name);
         }
     }
 }
Beispiel #3
0
 // Token: 0x060074D4 RID: 29908 RVA: 0x0023CBD8 File Offset: 0x0023ADD8
 public void RegisterVirtualButton(CrossPlatformInputManager.VirtualButton NACBMIFLLEK)
 {
     if (this.EPFOGMBOGLH.ContainsKey(NACBMIFLLEK.name))
     {
         Debug.LogError("There is already a virtual button named " + NACBMIFLLEK.name + " registered.");
     }
     else
     {
         this.EPFOGMBOGLH.Add(NACBMIFLLEK.name, NACBMIFLLEK);
         if (!NACBMIFLLEK.matchWithInputManager)
         {
             this.AHKAGDCKMLE.Add(NACBMIFLLEK.name);
         }
     }
 }
 // Token: 0x06000A73 RID: 2675 RVA: 0x0003F0E5 File Offset: 0x0003D4E5
 public static void RegisterVirtualButton(CrossPlatformInputManager.VirtualButton button)
 {
     CrossPlatformInputManager.activeInput.RegisterVirtualButton(button);
 }
Beispiel #5
0
 void Start()
 {
     bt         = new CrossPlatformInputManager.VirtualButton("Joystick");
     m_StartPos = transform.position;
 }
        }                                                                                      // 0x000000018062E3C0-0x000000018062E4C0

        public void RegisterVirtualButton(CrossPlatformInputManager.VirtualButton button)
        {
        }                                                                                            // 0x000000018062E4C0-0x000000018062E5C0
Beispiel #7
0
 public override void OnEnable()
 {
     base.OnEnable();
     mVirtualButton = new CrossPlatformInputManager.VirtualButton(ButtonName);
     CrossPlatformInputManager.RegisterVirtualButton(mVirtualButton);
 }
 public abstract void RegisterVirtualButton(CrossPlatformInputManager.VirtualButton button);