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