Exemple #1
0
        public override bool GetButtonUp(string buttonName)
        {
            bool        isDown = false;
            InputButton button = FindButton(buttonName);

            if (button != null)
            {
                if (CanExecute() || button.allowedStateOverride != 0)
                {
                    isDown = button.GetButtonUp(PlayerId);
                }
            }

            return(isDown);
        }
Exemple #2
0
 protected virtual void ReleaseControl(InputButton inputButton)
 {
     inputButton.ReleaseControl();
 }
Exemple #3
0
 protected virtual void GainControl(InputButton inputButton)
 {
     inputButton.GainControl();
 }