Exemple #1
0
 public override string ToString()
 {
     if (Type == HoldableControlType.Key)
     {
         return(ControlStrings.GetName(Key));
     }
     return(ControlStrings.GetName(Button));
 }
Exemple #2
0
        public override string ToString()
        {
            switch (Type)
            {
            case InstantControlType.Key:
                return(ControlStrings.GetName(Key));

            case InstantControlType.MouseButton:
                return(ControlStrings.GetName(Button));

            case InstantControlType.MouseWheel:
                return(ControlStrings.GetName(Wheel));
            }
            return("");
        }