示例#1
0
 public void FromXml(System.Xml.XmlNode node)
 {
     dropDownJoystick.SelectedKey = node.GetAttribute("joystick");
     Inverted                 = node.GetAttribute("inverted") == "true";
     IsXDirection             = node.GetAttribute("direction") != "y";
     dropDownVJoy.SelectedKey = node.GetAttribute("vjoy");
 }
示例#2
0
        public void FromXml(System.Xml.XmlNode node)
        {
            Joystick = node.GetAttribute("joystick");
            int value;

            if (Int32.TryParse(node.GetAttribute("pos"), out value))
            {
                Pos = value + 1;
            }
            VJoyAxis = node.GetAttribute("vjoy");
        }
示例#3
0
        public void FromXml(System.Xml.XmlNode node)
        {
            int value;

            if (Int32.TryParse(node.GetAttribute("button"), out value))
            {
                Button = value + 1;
            }

            IfFalseSayText = node.GetAttribute("offText");
            IfFalseMappings.FromXml(node.SelectSingleNode("Off"));
            IfTrueSayText = node.GetAttribute("onText");
            IfTrueMappings.FromXml(node.SelectSingleNode("On"));
        }
        public void FromXml(System.Xml.XmlNode node)
        {
            Joystick = node.GetAttribute("joystick");
            int value;

            if (Int32.TryParse(node.GetAttribute("button"), out value))
            {
                Button = value + 1;
            }

            IfFalseSayText = node.GetAttribute("deactivatedText");
            IfFalseMappings.FromXml(node.SelectSingleNode("Deactivated"));
            IfTrueSayText = node.GetAttribute("activatedText");
            IfTrueMappings.FromXml(node.SelectSingleNode("Activated"));
        }
示例#5
0
        public void FromXml(System.Xml.XmlNode node)
        {
            isInUpdate = true;
            Joystick   = node.GetAttribute("joystick");
            int value;

            if (Int32.TryParse(node.GetAttribute("from"), out value))
            {
                From = value + 1;
            }
            if (Int32.TryParse(node.GetAttribute("range"), out value))
            {
                Range = value;
            }
            if (Int32.TryParse(node.GetAttribute("mapTo"), out value))
            {
                MapTo = value + 1;
            }
            UpdateEndAt();
            isInUpdate = false;
        }
示例#6
0
 public void FromXml(System.Xml.XmlNode node)
 {
     JoystickPOV = node.GetAttribute("joystick");
     //Inverted = node.GetAttribute("inverted")!="false";
     VJoyPOV = node.GetAttribute("vjoy");
 }
示例#7
0
 public void FromXml(System.Xml.XmlNode node)
 {
     JoystickAxis = node.GetAttribute("joystick");
     Inverted     = node.GetAttribute("inverted") == "true";
     VJoyAxis     = node.GetAttribute("vjoy");
 }