mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-29 03:33:48 +00:00
Save "Flip Input Buttons" setting
This commit is contained in:
parent
881226fe43
commit
95fd453a99
1 changed files with 7 additions and 2 deletions
|
@ -176,6 +176,12 @@ void UserSettings::save()
|
||||||
}
|
}
|
||||||
xml_control->InsertEndChild(xml_targeting);
|
xml_control->InsertEndChild(xml_targeting);
|
||||||
|
|
||||||
|
XMLElement *xml_flip = doc.NewElement("FlipInputButtons");
|
||||||
|
{
|
||||||
|
xml_flip->SetAttribute("on", control.flipInputButtons);
|
||||||
|
}
|
||||||
|
xml_control->InsertEndChild(xml_flip);
|
||||||
|
|
||||||
XMLElement *xml_joyAxes = doc.NewElement("JoyAxes");
|
XMLElement *xml_joyAxes = doc.NewElement("JoyAxes");
|
||||||
{
|
{
|
||||||
xml_joyAxes->SetAttribute("s1ax", control.s1ax);
|
xml_joyAxes->SetAttribute("s1ax", control.s1ax);
|
||||||
|
@ -429,10 +435,9 @@ void UserSettings::load(bool doApply, const std::string &overrideFile)
|
||||||
if (xml_control)
|
if (xml_control)
|
||||||
{
|
{
|
||||||
readInt(xml_control, "JoystickEnabled", "on", &control.joystickEnabled);
|
readInt(xml_control, "JoystickEnabled", "on", &control.joystickEnabled);
|
||||||
|
|
||||||
readInt(xml_control, "AutoAim", "on", &control.autoAim);
|
readInt(xml_control, "AutoAim", "on", &control.autoAim);
|
||||||
|
|
||||||
readInt(xml_control, "Targeting", "on", &control.targeting);
|
readInt(xml_control, "Targeting", "on", &control.targeting);
|
||||||
|
readInt(xml_control, "FlipInputButtons", "on", &control.flipInputButtons);
|
||||||
|
|
||||||
XMLElement *xml_joyAxes = xml_control->FirstChildElement("JoyAxes");
|
XMLElement *xml_joyAxes = xml_control->FirstChildElement("JoyAxes");
|
||||||
if (xml_joyAxes)
|
if (xml_joyAxes)
|
||||||
|
|
Loading…
Reference in a new issue