Adjusted defaulyts. Fixed trigger turn default

This commit is contained in:
Travis Nickles 2019-08-23 22:08:15 -05:00
parent 78cf371dce
commit bc437a2769
2 changed files with 11 additions and 11 deletions

View File

@ -3146,28 +3146,28 @@ namespace DS4Windows
try { Item = m_Xdoc.SelectSingleNode("/" + rootname + "/GyroMouseStickDeadZone"); int.TryParse(Item.InnerText, out int temp); try { Item = m_Xdoc.SelectSingleNode("/" + rootname + "/GyroMouseStickDeadZone"); int.TryParse(Item.InnerText, out int temp);
gyroMStickInfo[device].deadZone = temp; } gyroMStickInfo[device].deadZone = temp; }
catch { gyroMStickInfo[device].deadZone = 50; missingSetting = true; } catch { gyroMStickInfo[device].deadZone = 30; missingSetting = true; }
try try
{ {
Item = m_Xdoc.SelectSingleNode("/" + rootname + "/GyroMouseStickMaxZone"); int.TryParse(Item.InnerText, out int temp); Item = m_Xdoc.SelectSingleNode("/" + rootname + "/GyroMouseStickMaxZone"); int.TryParse(Item.InnerText, out int temp);
gyroMStickInfo[device].maxZone = temp; gyroMStickInfo[device].maxZone = temp;
} }
catch { gyroMStickInfo[device].maxZone = 880; missingSetting = true; } catch { gyroMStickInfo[device].maxZone = 840; missingSetting = true; }
try try
{ {
Item = m_Xdoc.SelectSingleNode("/" + rootname + "/GyroMouseStickAntiDeadX"); double.TryParse(Item.InnerText, out double temp); Item = m_Xdoc.SelectSingleNode("/" + rootname + "/GyroMouseStickAntiDeadX"); double.TryParse(Item.InnerText, out double temp);
gyroMStickInfo[device].antiDeadX = temp; gyroMStickInfo[device].antiDeadX = temp;
} }
catch { gyroMStickInfo[device].antiDeadX = 0.35; missingSetting = true; } catch { gyroMStickInfo[device].antiDeadX = 0.4; missingSetting = true; }
try try
{ {
Item = m_Xdoc.SelectSingleNode("/" + rootname + "/GyroMouseStickAntiDeadY"); double.TryParse(Item.InnerText, out double temp); Item = m_Xdoc.SelectSingleNode("/" + rootname + "/GyroMouseStickAntiDeadY"); double.TryParse(Item.InnerText, out double temp);
gyroMStickInfo[device].antiDeadY = temp; gyroMStickInfo[device].antiDeadY = temp;
} }
catch { gyroMStickInfo[device].antiDeadY = 0.35; missingSetting = true; } catch { gyroMStickInfo[device].antiDeadY = 0.4; missingSetting = true; }
try { Item = m_Xdoc.SelectSingleNode("/" + rootname + "/GyroMouseStickInvert"); uint.TryParse(Item.InnerText, out gyroMStickInfo[device].inverted); } try { Item = m_Xdoc.SelectSingleNode("/" + rootname + "/GyroMouseStickInvert"); uint.TryParse(Item.InnerText, out gyroMStickInfo[device].inverted); }
catch { gyroMStickInfo[device].inverted = 0; missingSetting = true; } catch { gyroMStickInfo[device].inverted = 0; missingSetting = true; }
@ -4552,8 +4552,8 @@ namespace DS4Windows
gyroOutMode[device] = GyroOutMode.Controls; gyroOutMode[device] = GyroOutMode.Controls;
sAMouseStickTriggers[device] = string.Empty; sAMouseStickTriggers[device] = string.Empty;
sAMouseStickTriggerCond[device] = true; sAMouseStickTriggerCond[device] = true;
gyroMStickInfo[device].deadZone = 40; gyroMStickInfo[device].maxZone = 880; gyroMStickInfo[device].deadZone = 30; gyroMStickInfo[device].maxZone = 840;
gyroMStickInfo[device].antiDeadX = 0.35; gyroMStickInfo[device].antiDeadY = 0.35; gyroMStickInfo[device].antiDeadX = 0.4; gyroMStickInfo[device].antiDeadY = 0.4;
gyroMStickInfo[device].inverted = 0; gyroMStickInfo[device].inverted = 0;
sASteeringWheelEmulationAxis[device] = SASteeringWheelEmulationAxisType.None; sASteeringWheelEmulationAxis[device] = SASteeringWheelEmulationAxisType.None;
sASteeringWheelEmulationRange[device] = 360; sASteeringWheelEmulationRange[device] = 360;

View File

@ -959,12 +959,12 @@ namespace DS4Windows.Forms
OutContTypeCb.SelectedIndex = 0; OutContTypeCb.SelectedIndex = 0;
gyroOutputMode.SelectedIndex = 0; gyroOutputMode.SelectedIndex = 0;
gyroMStickTrigBehaveCk.Checked = false; gyroMStickTrigBehaveCk.Checked = true;
gyroMouseStickEvalCombo.SelectedIndex = 0; gyroMouseStickEvalCombo.SelectedIndex = 0;
gyroMouseStickDZ.Value = 40; gyroMouseStickDZ.Value = 30;
gyroMouseStickMaxZ.Value = 880; gyroMouseStickMaxZ.Value = 840;
gyroMouseStickAntiDeadX.Value = 0.35m; gyroMouseStickAntiDeadX.Value = 0.4m;
gyroMouseStickAntiDeadY.Value = 0.35m; gyroMouseStickAntiDeadY.Value = 0.4m;
gyroMousestickXAxisCom.SelectedIndex = 0; gyroMousestickXAxisCom.SelectedIndex = 0;
gyroMouseStickInvertXCk.Checked = false; gyroMouseStickInvertXCk.Checked = false;
gyroMouseStickInvertYCk.Checked = false; gyroMouseStickInvertYCk.Checked = false;