Ejemplo n.º 1
0
        public void RemoveDoubleTap(string _name)
        {
            ControlButton b = this[_name];

            b._IsDoubleTapped = false;
            b._IsPressed      = true;
            b._GotPressed     = true;
        }
Ejemplo n.º 2
0
        public void DoubleTapOnce(string _name)
        {
            ControlButton b = this[_name];

            b._IsDoubleTapped  = false;
            b._GotDoubleTapped = true;
            b._IsPressed       = false;
            b._IsDown          = false;
        }
Ejemplo n.º 3
0
        public void PressOnce(string _name)
        {
            ControlButton b = this[_name];

            b._IsPressed      = false;
            b._GotPressed     = true;
            b._IsDoubleTapped = false;
            b._IsDown         = false;
            b._NumberOfPresses++;
        }
Ejemplo n.º 4
0
 public ControlButton this[string _name]
 {
     get
     {
         if (!_Buttons.ContainsKey(_name))
         {
             _Buttons[_name] = new ControlButton();
         }
         return(_Buttons[_name]);
     }
 }
Ejemplo n.º 5
0
        internal void _Press(string _name)
        {
            ControlButton b = this[_name];

            if (!b.IsDown)
            {
                if (b._DoubleTapCountdown > 0)
                {
                    b._DoubleTapCountdown = 0;
                    b._IsDoubleTapped     = true;
                    b._GotDoubleTapped    = true;
                }
                else
                {
                    b._DoubleTapCountdown = this.DoubleTapCountdown;
                    b._IsPressed          = true;
                    b._GotPressed         = true;
                }
            }
            b._IsDown = true;
            b._NumberOfPresses++;
        }