Пример #1
0
        public void ToXml(System.Xml.XmlNode parentNode)
        {
            var node = parentNode.AddElement(TagName);

            node.SetAttribute("joystick", Joystick);
            node.SetAttribute("pos", (Pos - 1).ToString());
            node.SetAttribute("vjoy", VJoyAxis);
        }
Пример #2
0
        public void ToXml(System.Xml.XmlNode parentNode)
        {
            var node = parentNode.AddElement(TagName);

            node.SetAttribute("joystick", JoystickPOV);
            //node.SetAttribute("inverted", Inverted.ToXml());
            node.SetAttribute("vjoy", VJoyPOV);
        }
Пример #3
0
        public void ToXml(System.Xml.XmlNode parentNode)
        {
            var node = parentNode.AddElement(TagName);

            node.SetAttribute("joystick", Joystick);
            node.SetAttribute("from", (From - 1).ToString());
            node.SetAttribute("range", Range.ToString());
            node.SetAttribute("mapTo", (MapTo - 1).ToString());
        }
Пример #4
0
        public void ToXml(System.Xml.XmlNode parentNode)
        {
            var node = parentNode.AddElement(TagName);

            node.SetAttribute("joystick", dropDownJoystick.SelectedKey);
            node.SetAttribute("inverted", Inverted.ToXml());
            node.SetAttribute("direction", IsXDirection ? "x" : "y");
            node.SetAttribute("vjoy", dropDownVJoy.SelectedKey);
        }
Пример #5
0
        public void ToXml(System.Xml.XmlNode parentNode)
        {
            var node = parentNode.AddElement("Switch");

            node.SetAttribute("button", (Button - 1).ToString());
            node.SetAttribute("offText", IfFalseSayText);
            IfFalseMappings.ToXml(node.AddElement("Off"));
            node.SetAttribute("onText", IfTrueSayText);
            IfTrueMappings.ToXml(node.AddElement("On"));
        }
Пример #6
0
 public void ToXml(System.Xml.XmlNode joysticks)
 {
     foreach (var item in Items)
     {
         var joystick = joysticks.AddElement("Joystick");
         joystick.SetAttribute("name", item.Item.Name);
         joystick.SetAttribute("preferred", item.Item.Device.InstanceGuid.ToString());
         joystick.SetAttribute("deadzone", item.DeadZone.ToString(System.Globalization.CultureInfo.GetCultureInfo(9)));
     }
 }
Пример #7
0
        public void ToXml(System.Xml.XmlNode parentNode)
        {
            var node = parentNode.AddElement(TagName);

            node.SetAttribute("joystick", Joystick);
            node.SetAttribute("button", (Button - 1).ToString());
            node.SetAttribute("deactivatedText", IfFalseSayText);
            IfFalseMappings.ToXml(node.AddElement("Deactivated"));
            node.SetAttribute("activatedText", IfTrueSayText);
            IfTrueMappings.ToXml(node.AddElement("Activated"));
        }