Ejemplo n.º 1
0
        public static SButton OptionToSButton(string name)
        {
            switch (name)
            {
            case "MOUSE_LEFT":
            {
                return(SButton.MouseLeft);
            }

            case "MOUSE_RIGHT":
            {
                return(SButton.MouseRight);
            }

            default:
            {
                InputButton optionBtn = Utils.GetPrivateField(Game1.options, name)[0];
                return(SButtonExtensions.ToSButton(optionBtn));
            }
            }
        }