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"); }
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"); }
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")); }
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; }
public void FromXml(System.Xml.XmlNode node) { JoystickPOV = node.GetAttribute("joystick"); //Inverted = node.GetAttribute("inverted")!="false"; VJoyPOV = node.GetAttribute("vjoy"); }
public void FromXml(System.Xml.XmlNode node) { JoystickAxis = node.GetAttribute("joystick"); Inverted = node.GetAttribute("inverted") == "true"; VJoyAxis = node.GetAttribute("vjoy"); }