示例#1
0
 public override string ToString()
 {
     if (Type == HoldableControlType.Key)
     {
         return(ControlStrings.GetName(Key));
     }
     return(ControlStrings.GetName(Button));
 }
示例#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("");
        }