Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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());
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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"));
        }
Ejemplo n.º 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)));
     }
 }
Ejemplo n.º 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"));
        }