1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +00:00

Save "Flip Input Buttons" setting

This commit is contained in:
fgenesis 2016-07-14 05:09:50 +02:00
parent 881226fe43
commit 95fd453a99

View file

@ -176,6 +176,12 @@ void UserSettings::save()
}
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");
{
xml_joyAxes->SetAttribute("s1ax", control.s1ax);
@ -429,10 +435,9 @@ void UserSettings::load(bool doApply, const std::string &overrideFile)
if (xml_control)
{
readInt(xml_control, "JoystickEnabled", "on", &control.joystickEnabled);
readInt(xml_control, "AutoAim", "on", &control.autoAim);
readInt(xml_control, "Targeting", "on", &control.targeting);
readInt(xml_control, "FlipInputButtons", "on", &control.flipInputButtons);
XMLElement *xml_joyAxes = xml_control->FirstChildElement("JoyAxes");
if (xml_joyAxes)