Example #1
0
 public void RegisterVirtualButton(CrossPlatformInput.VirtualButton button)
 {
     if (this.virtualButtons.ContainsKey(button.name))
     {
         Debug.LogError("There is already a virtual button named " + button.name + " registered.");
     }
     else
     {
         this.virtualButtons.Add(button.name, button);
         if (!button.matchWithInputManager)
         {
             this.alwaysUseVirtual.Add(button.name);
         }
     }
 }
Example #2
0
    public void RegisterVirtualButton(CrossPlatformInput.VirtualButton button)
    {
        // check if already have a buttin with that name and log an error if we do
        if (virtualButtons.ContainsKey(button.name))
        {
            Debug.LogError("There is already a virtual button named " + button.name + " registered.");
        }
        else
        {
            // add any new buttons
            virtualButtons.Add(button.name, button);

            // if we dont want to match to the input manager then always use a virtual axis
            if (!button.matchWithInputManager)
            {
                alwaysUseVirtual.Add(button.name);
            }
        }
    }
Example #3
0
 // Token: 0x06004DDB RID: 19931 RVA: 0x001A1810 File Offset: 0x0019FC10
 private static void RegisterVirtualButton(CrossPlatformInput.VirtualButton button)
 {
     CrossPlatformInput.virtualInput.RegisterVirtualButton(button);
 }
Example #4
0
    protected Rect m_Rect;                                      // The zone on screen where the button exists


    public void Enable(string name, bool pairwithinputmanager, Rect rect)
    {
        m_Button = new CrossPlatformInput.VirtualButton(name, pairwithinputmanager);
        m_Rect   = rect;
    }
    protected Rect m_Rect;                                      // The zone on screen where the button exists


    public void Enable (string name,bool pairwithinputmanager, Rect rect) {

        m_Button = new CrossPlatformInput.VirtualButton(name, pairwithinputmanager);
        m_Rect = rect;   
    }