mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-23 23:21:49 +01:00
Added sixaxis output curve options
This commit is contained in:
parent
fd1479f09f
commit
5a84f8b2e3
@ -77,8 +77,6 @@ namespace DS4Windows
|
||||
public static int[] prevFadetimer = new int[4] { 0, 0, 0, 0 };
|
||||
public static DS4Color[] lastColor = new DS4Color[4];
|
||||
public static List<ActionState> actionDone = new List<ActionState>();
|
||||
//public static List<bool>[] actionDone = { new List<bool>(), new List<bool>(), new List<bool>(), new List<bool>() };
|
||||
//public static bool[,] actionDone = new bool[4, 50];
|
||||
public static SpecialAction[] untriggeraction = new SpecialAction[4];
|
||||
public static DateTime[] nowAction = { DateTime.MinValue, DateTime.MinValue, DateTime.MinValue, DateTime.MinValue };
|
||||
public static DateTime[] oldnowAction = { DateTime.MinValue, DateTime.MinValue, DateTime.MinValue, DateTime.MinValue };
|
||||
@ -134,6 +132,8 @@ namespace DS4Windows
|
||||
private static int[] rsOutCurveModeArray = new int[4] { 0, 0, 0, 0 };
|
||||
private static int[] lsOutCurveModeArray = new int[4] { 0, 0, 0, 0 };
|
||||
static bool tempBool = false;
|
||||
private static double[] tempDoubleArray = new double[4] { 0.0, 0.0, 0.0, 0.0 };
|
||||
private static int[] tempIntArray = new int[4] { 0, 0, 0, 0 };
|
||||
|
||||
// Special macros
|
||||
static bool altTabDone = true;
|
||||
@ -404,7 +404,6 @@ namespace DS4Windows
|
||||
return (value < min) ? min : (value > max) ? max : value;
|
||||
}
|
||||
|
||||
private static double[] tempDoubleArray = new double[4] { 0.0, 0.0, 0.0, 0.0 };
|
||||
public static DS4State SetCurveAndDeadzone(int device, DS4State cState)
|
||||
{
|
||||
double rotation = tempDoubleArray[device] = getLSRotation(device);
|
||||
@ -743,7 +742,7 @@ namespace DS4Windows
|
||||
dState.R2 = (byte)Global.Clamp(0, r2Sens * dState.R2, 255);
|
||||
|
||||
int lsOutCurveMode = lsOutCurveModeArray[device] = getLsOutCurveMode(device);
|
||||
if (lsOutCurveMode != 0)
|
||||
if (lsOutCurveMode > 0)
|
||||
{
|
||||
double tempX = (dState.LX - 127.5) / 127.5;
|
||||
double tempY = (dState.LY - 127.5) / 127.5;
|
||||
@ -803,7 +802,7 @@ namespace DS4Windows
|
||||
}
|
||||
|
||||
int rsOutCurveMode = rsOutCurveModeArray[device] = getRsOutCurveMode(device);
|
||||
if (rsOutCurveMode != 0)
|
||||
if (rsOutCurveMode > 0)
|
||||
{
|
||||
double tempX = (dState.RX - 127.5) / 127.5;
|
||||
double tempY = (dState.RY - 127.5) / 127.5;
|
||||
@ -948,6 +947,40 @@ namespace DS4Windows
|
||||
dState.Motion.accelZ = Math.Sign(gyroZ) *
|
||||
(int)Math.Min(128d, szsens * 128d * (absz / 128d));
|
||||
}
|
||||
|
||||
int sxOutCurveMode = tempIntArray[device] = getSXOutCurveMode(device);
|
||||
if (sxOutCurveMode > 0)
|
||||
{
|
||||
double temp = Math.Abs(dState.Motion.accelX) / 128.0;
|
||||
double sign = Math.Sign(temp);
|
||||
if (sxOutCurveMode == 1)
|
||||
{
|
||||
double output = temp * temp;
|
||||
dState.Motion.accelX = (byte)(output * sign * 128.0);
|
||||
}
|
||||
else if (sxOutCurveMode == 2)
|
||||
{
|
||||
double output = temp * temp * temp;
|
||||
dState.Motion.accelX = (byte)(output * 128.0);
|
||||
}
|
||||
}
|
||||
|
||||
int szOutCurveMode = tempIntArray[device] = getSZOutCurveMode(device);
|
||||
if (szOutCurveMode > 0)
|
||||
{
|
||||
double temp = Math.Abs(dState.Motion.accelZ) / 128.0;
|
||||
double sign = Math.Sign(temp);
|
||||
if (szOutCurveMode == 1)
|
||||
{
|
||||
double output = temp * temp;
|
||||
dState.Motion.accelZ = (byte)(output * sign * 128.0);
|
||||
}
|
||||
else if (szOutCurveMode == 2)
|
||||
{
|
||||
double output = temp * temp * temp;
|
||||
dState.Motion.accelZ = (byte)(output * 128.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return dState;
|
||||
|
@ -876,6 +876,18 @@ namespace DS4Windows
|
||||
return m_Config.r2OutCurveMode[index];
|
||||
}
|
||||
|
||||
public static int[] sxOutCurveMode => m_Config.sxOutCurveMode;
|
||||
public static int getSXOutCurveMode(int index)
|
||||
{
|
||||
return m_Config.sxOutCurveMode[index];
|
||||
}
|
||||
|
||||
public static int[] szOutCurveMode => m_Config.szOutCurveMode;
|
||||
public static int getSZOutCurveMode(int index)
|
||||
{
|
||||
return m_Config.szOutCurveMode[index];
|
||||
}
|
||||
|
||||
public static string[] LaunchProgram => m_Config.launchProgram;
|
||||
public static string[] ProfilePath => m_Config.profilePath;
|
||||
public static bool[] DistanceProfiles = m_Config.distanceProfiles;
|
||||
@ -1225,6 +1237,8 @@ namespace DS4Windows
|
||||
public int[] rsOutCurveMode = { 0, 0, 0, 0, 0 };
|
||||
public int[] l2OutCurveMode = new int[5] { 0, 0, 0, 0, 0 };
|
||||
public int[] r2OutCurveMode = new int[5] { 0, 0, 0, 0, 0 };
|
||||
public int[] sxOutCurveMode = new int[5] { 0, 0, 0, 0, 0 };
|
||||
public int[] szOutCurveMode = new int[5] { 0, 0, 0, 0, 0 };
|
||||
|
||||
public DS4Color[] m_LowLeds = new DS4Color[]
|
||||
{
|
||||
@ -1586,6 +1600,9 @@ namespace DS4Windows
|
||||
XmlNode xmlL2OutputCurveMode = m_Xdoc.CreateNode(XmlNodeType.Element, "L2OutputCurveMode", null); xmlL2OutputCurveMode.InnerText = axisOutputCurveString(l2OutCurveMode[device]); Node.AppendChild(xmlL2OutputCurveMode);
|
||||
XmlNode xmlR2OutputCurveMode = m_Xdoc.CreateNode(XmlNodeType.Element, "R2OutputCurveMode", null); xmlR2OutputCurveMode.InnerText = axisOutputCurveString(r2OutCurveMode[device]); Node.AppendChild(xmlR2OutputCurveMode);
|
||||
|
||||
XmlNode xmlSXOutputCurveMode = m_Xdoc.CreateNode(XmlNodeType.Element, "SXOutputCurveMode", null); xmlSXOutputCurveMode.InnerText = axisOutputCurveString(sxOutCurveMode[device]); Node.AppendChild(xmlSXOutputCurveMode);
|
||||
XmlNode xmlSZOutputCurveMode = m_Xdoc.CreateNode(XmlNodeType.Element, "SZOutputCurveMode", null); xmlSZOutputCurveMode.InnerText = axisOutputCurveString(szOutCurveMode[device]); Node.AppendChild(xmlSZOutputCurveMode);
|
||||
|
||||
XmlNode NodeControl = m_Xdoc.CreateNode(XmlNodeType.Element, "Control", null);
|
||||
XmlNode Key = m_Xdoc.CreateNode(XmlNodeType.Element, "Key", null);
|
||||
XmlNode Macro = m_Xdoc.CreateNode(XmlNodeType.Element, "Macro", null);
|
||||
@ -2586,6 +2603,12 @@ namespace DS4Windows
|
||||
try { Item = m_Xdoc.SelectSingleNode("/" + rootname + "/R2OutputCurveMode"); r2OutCurveMode[device] = axisOutputCurveId(Item.InnerText); }
|
||||
catch { r2OutCurveMode[device] = 0; missingSetting = true; }
|
||||
|
||||
try { Item = m_Xdoc.SelectSingleNode("/" + rootname + "/SXOutputCurveMode"); sxOutCurveMode[device] = axisOutputCurveId(Item.InnerText); }
|
||||
catch { sxOutCurveMode[device] = 0; missingSetting = true; }
|
||||
|
||||
try { Item = m_Xdoc.SelectSingleNode("/" + rootname + "/SZOutputCurveMode"); szOutCurveMode[device] = axisOutputCurveId(Item.InnerText); }
|
||||
catch { szOutCurveMode[device] = 0; missingSetting = true; }
|
||||
|
||||
try
|
||||
{
|
||||
Item = m_Xdoc.SelectSingleNode("/" + rootname + "/ProfileActions");
|
||||
@ -3630,6 +3653,7 @@ namespace DS4Windows
|
||||
rsOutCurveMode[device] = 0;
|
||||
l2OutCurveMode[device] = 0;
|
||||
r2OutCurveMode[device] = 0;
|
||||
sxOutCurveMode[device] = szOutCurveMode[device] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
246
DS4Windows/DS4Forms/Options.Designer.cs
generated
246
DS4Windows/DS4Forms/Options.Designer.cs
generated
@ -280,6 +280,19 @@
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.nUDLSMaxZone = new System.Windows.Forms.NumericUpDown();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.tPOutCurve = new System.Windows.Forms.TabPage();
|
||||
this.cBSixaxisZOutputCurve = new System.Windows.Forms.ComboBox();
|
||||
this.cBSixaxisXOutputCurve = new System.Windows.Forms.ComboBox();
|
||||
this.label24 = new System.Windows.Forms.Label();
|
||||
this.label23 = new System.Windows.Forms.Label();
|
||||
this.cBR2OutputCurve = new System.Windows.Forms.ComboBox();
|
||||
this.cBL2OutputCurve = new System.Windows.Forms.ComboBox();
|
||||
this.label22 = new System.Windows.Forms.Label();
|
||||
this.label21 = new System.Windows.Forms.Label();
|
||||
this.rsOutCurveComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.lsOutCurveComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.tPCurve = new System.Windows.Forms.TabPage();
|
||||
this.nUDLSCurve = new System.Windows.Forms.NumericUpDown();
|
||||
this.nUDRSCurve = new System.Windows.Forms.NumericUpDown();
|
||||
@ -287,11 +300,6 @@
|
||||
this.lbRSCurvePercent = new System.Windows.Forms.Label();
|
||||
this.lbLSCurvePercent = new System.Windows.Forms.Label();
|
||||
this.lbLSCurve = new System.Windows.Forms.Label();
|
||||
this.tPOutCurve = new System.Windows.Forms.TabPage();
|
||||
this.rsOutCurveComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.lsOutCurveComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.tpRotation = new System.Windows.Forms.TabPage();
|
||||
this.nUDRSRotation = new System.Windows.Forms.NumericUpDown();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
@ -354,10 +362,6 @@
|
||||
this.pSToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.alwaysOnToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.advColorDialog = new DS4Windows.AdvancedColorDialog();
|
||||
this.label21 = new System.Windows.Forms.Label();
|
||||
this.label22 = new System.Windows.Forms.Label();
|
||||
this.cBL2OutputCurve = new System.Windows.Forms.ComboBox();
|
||||
this.cBR2OutputCurve = new System.Windows.Forms.ComboBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDRainbow)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tBBlueBar)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tBGreenBar)).BeginInit();
|
||||
@ -428,10 +432,10 @@
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDL2Maxzone)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDRSMaxZone)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDLSMaxZone)).BeginInit();
|
||||
this.tPOutCurve.SuspendLayout();
|
||||
this.tPCurve.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDLSCurve)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDRSCurve)).BeginInit();
|
||||
this.tPOutCurve.SuspendLayout();
|
||||
this.tpRotation.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDRSRotation)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDLSRotation)).BeginInit();
|
||||
@ -3034,6 +3038,134 @@
|
||||
resources.ApplyResources(this.label5, "label5");
|
||||
this.label5.Name = "label5";
|
||||
//
|
||||
// tPOutCurve
|
||||
//
|
||||
this.tPOutCurve.Controls.Add(this.cBSixaxisZOutputCurve);
|
||||
this.tPOutCurve.Controls.Add(this.cBSixaxisXOutputCurve);
|
||||
this.tPOutCurve.Controls.Add(this.label24);
|
||||
this.tPOutCurve.Controls.Add(this.label23);
|
||||
this.tPOutCurve.Controls.Add(this.cBR2OutputCurve);
|
||||
this.tPOutCurve.Controls.Add(this.cBL2OutputCurve);
|
||||
this.tPOutCurve.Controls.Add(this.label22);
|
||||
this.tPOutCurve.Controls.Add(this.label21);
|
||||
this.tPOutCurve.Controls.Add(this.rsOutCurveComboBox);
|
||||
this.tPOutCurve.Controls.Add(this.lsOutCurveComboBox);
|
||||
this.tPOutCurve.Controls.Add(this.label10);
|
||||
this.tPOutCurve.Controls.Add(this.label9);
|
||||
resources.ApplyResources(this.tPOutCurve, "tPOutCurve");
|
||||
this.tPOutCurve.Name = "tPOutCurve";
|
||||
this.tPOutCurve.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cBSixaxisZOutputCurve
|
||||
//
|
||||
this.cBSixaxisZOutputCurve.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cBSixaxisZOutputCurve.DropDownWidth = 70;
|
||||
this.cBSixaxisZOutputCurve.FormattingEnabled = true;
|
||||
this.cBSixaxisZOutputCurve.Items.AddRange(new object[] {
|
||||
resources.GetString("cBSixaxisZOutputCurve.Items"),
|
||||
resources.GetString("cBSixaxisZOutputCurve.Items1"),
|
||||
resources.GetString("cBSixaxisZOutputCurve.Items2")});
|
||||
resources.ApplyResources(this.cBSixaxisZOutputCurve, "cBSixaxisZOutputCurve");
|
||||
this.cBSixaxisZOutputCurve.Name = "cBSixaxisZOutputCurve";
|
||||
this.cBSixaxisZOutputCurve.SelectedIndexChanged += new System.EventHandler(this.cBSixaxisZOutputCurve_SelectedIndexChanged);
|
||||
//
|
||||
// cBSixaxisXOutputCurve
|
||||
//
|
||||
this.cBSixaxisXOutputCurve.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cBSixaxisXOutputCurve.DropDownWidth = 70;
|
||||
this.cBSixaxisXOutputCurve.FormattingEnabled = true;
|
||||
this.cBSixaxisXOutputCurve.Items.AddRange(new object[] {
|
||||
resources.GetString("cBSixaxisXOutputCurve.Items"),
|
||||
resources.GetString("cBSixaxisXOutputCurve.Items1"),
|
||||
resources.GetString("cBSixaxisXOutputCurve.Items2")});
|
||||
resources.ApplyResources(this.cBSixaxisXOutputCurve, "cBSixaxisXOutputCurve");
|
||||
this.cBSixaxisXOutputCurve.Name = "cBSixaxisXOutputCurve";
|
||||
this.cBSixaxisXOutputCurve.SelectedIndexChanged += new System.EventHandler(this.cBSixaxisXOutputCurve_SelectedIndexChanged);
|
||||
//
|
||||
// label24
|
||||
//
|
||||
resources.ApplyResources(this.label24, "label24");
|
||||
this.label24.Name = "label24";
|
||||
//
|
||||
// label23
|
||||
//
|
||||
resources.ApplyResources(this.label23, "label23");
|
||||
this.label23.Name = "label23";
|
||||
//
|
||||
// cBR2OutputCurve
|
||||
//
|
||||
this.cBR2OutputCurve.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cBR2OutputCurve.DropDownWidth = 70;
|
||||
this.cBR2OutputCurve.FormattingEnabled = true;
|
||||
this.cBR2OutputCurve.Items.AddRange(new object[] {
|
||||
resources.GetString("cBR2OutputCurve.Items"),
|
||||
resources.GetString("cBR2OutputCurve.Items1"),
|
||||
resources.GetString("cBR2OutputCurve.Items2")});
|
||||
resources.ApplyResources(this.cBR2OutputCurve, "cBR2OutputCurve");
|
||||
this.cBR2OutputCurve.Name = "cBR2OutputCurve";
|
||||
this.cBR2OutputCurve.SelectedIndexChanged += new System.EventHandler(this.cBR2OutputCurve_SelectedIndexChanged);
|
||||
//
|
||||
// cBL2OutputCurve
|
||||
//
|
||||
this.cBL2OutputCurve.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cBL2OutputCurve.DropDownWidth = 70;
|
||||
this.cBL2OutputCurve.FormattingEnabled = true;
|
||||
this.cBL2OutputCurve.Items.AddRange(new object[] {
|
||||
resources.GetString("cBL2OutputCurve.Items"),
|
||||
resources.GetString("cBL2OutputCurve.Items1"),
|
||||
resources.GetString("cBL2OutputCurve.Items2")});
|
||||
resources.ApplyResources(this.cBL2OutputCurve, "cBL2OutputCurve");
|
||||
this.cBL2OutputCurve.Name = "cBL2OutputCurve";
|
||||
this.cBL2OutputCurve.SelectedIndexChanged += new System.EventHandler(this.cBL2OutputCurve_SelectedIndexChanged);
|
||||
//
|
||||
// label22
|
||||
//
|
||||
resources.ApplyResources(this.label22, "label22");
|
||||
this.label22.Name = "label22";
|
||||
//
|
||||
// label21
|
||||
//
|
||||
resources.ApplyResources(this.label21, "label21");
|
||||
this.label21.Name = "label21";
|
||||
//
|
||||
// rsOutCurveComboBox
|
||||
//
|
||||
this.rsOutCurveComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.rsOutCurveComboBox.DropDownWidth = 120;
|
||||
this.rsOutCurveComboBox.FormattingEnabled = true;
|
||||
this.rsOutCurveComboBox.Items.AddRange(new object[] {
|
||||
resources.GetString("rsOutCurveComboBox.Items"),
|
||||
resources.GetString("rsOutCurveComboBox.Items1"),
|
||||
resources.GetString("rsOutCurveComboBox.Items2"),
|
||||
resources.GetString("rsOutCurveComboBox.Items3")});
|
||||
resources.ApplyResources(this.rsOutCurveComboBox, "rsOutCurveComboBox");
|
||||
this.rsOutCurveComboBox.Name = "rsOutCurveComboBox";
|
||||
this.rsOutCurveComboBox.SelectedIndexChanged += new System.EventHandler(this.rsOutCurveComboBox_SelectedIndexChanged);
|
||||
//
|
||||
// lsOutCurveComboBox
|
||||
//
|
||||
this.lsOutCurveComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.lsOutCurveComboBox.DropDownWidth = 120;
|
||||
this.lsOutCurveComboBox.FormattingEnabled = true;
|
||||
this.lsOutCurveComboBox.Items.AddRange(new object[] {
|
||||
resources.GetString("lsOutCurveComboBox.Items"),
|
||||
resources.GetString("lsOutCurveComboBox.Items1"),
|
||||
resources.GetString("lsOutCurveComboBox.Items2"),
|
||||
resources.GetString("lsOutCurveComboBox.Items3")});
|
||||
resources.ApplyResources(this.lsOutCurveComboBox, "lsOutCurveComboBox");
|
||||
this.lsOutCurveComboBox.Name = "lsOutCurveComboBox";
|
||||
this.lsOutCurveComboBox.SelectedIndexChanged += new System.EventHandler(this.lsOutCurveComboBox_SelectedIndexChanged);
|
||||
//
|
||||
// label10
|
||||
//
|
||||
resources.ApplyResources(this.label10, "label10");
|
||||
this.label10.Name = "label10";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
resources.ApplyResources(this.label9, "label9");
|
||||
this.label9.Name = "label9";
|
||||
//
|
||||
// tPCurve
|
||||
//
|
||||
this.tPCurve.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
@ -3088,58 +3220,6 @@
|
||||
resources.ApplyResources(this.lbLSCurve, "lbLSCurve");
|
||||
this.lbLSCurve.Name = "lbLSCurve";
|
||||
//
|
||||
// tPOutCurve
|
||||
//
|
||||
this.tPOutCurve.Controls.Add(this.cBR2OutputCurve);
|
||||
this.tPOutCurve.Controls.Add(this.cBL2OutputCurve);
|
||||
this.tPOutCurve.Controls.Add(this.label22);
|
||||
this.tPOutCurve.Controls.Add(this.label21);
|
||||
this.tPOutCurve.Controls.Add(this.rsOutCurveComboBox);
|
||||
this.tPOutCurve.Controls.Add(this.lsOutCurveComboBox);
|
||||
this.tPOutCurve.Controls.Add(this.label10);
|
||||
this.tPOutCurve.Controls.Add(this.label9);
|
||||
resources.ApplyResources(this.tPOutCurve, "tPOutCurve");
|
||||
this.tPOutCurve.Name = "tPOutCurve";
|
||||
this.tPOutCurve.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// rsOutCurveComboBox
|
||||
//
|
||||
this.rsOutCurveComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.rsOutCurveComboBox.DropDownWidth = 100;
|
||||
this.rsOutCurveComboBox.FormattingEnabled = true;
|
||||
this.rsOutCurveComboBox.Items.AddRange(new object[] {
|
||||
resources.GetString("rsOutCurveComboBox.Items"),
|
||||
resources.GetString("rsOutCurveComboBox.Items1"),
|
||||
resources.GetString("rsOutCurveComboBox.Items2"),
|
||||
resources.GetString("rsOutCurveComboBox.Items3")});
|
||||
resources.ApplyResources(this.rsOutCurveComboBox, "rsOutCurveComboBox");
|
||||
this.rsOutCurveComboBox.Name = "rsOutCurveComboBox";
|
||||
this.rsOutCurveComboBox.SelectedIndexChanged += new System.EventHandler(this.rsOutCurveComboBox_SelectedIndexChanged);
|
||||
//
|
||||
// lsOutCurveComboBox
|
||||
//
|
||||
this.lsOutCurveComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.lsOutCurveComboBox.DropDownWidth = 100;
|
||||
this.lsOutCurveComboBox.FormattingEnabled = true;
|
||||
this.lsOutCurveComboBox.Items.AddRange(new object[] {
|
||||
resources.GetString("lsOutCurveComboBox.Items"),
|
||||
resources.GetString("lsOutCurveComboBox.Items1"),
|
||||
resources.GetString("lsOutCurveComboBox.Items2"),
|
||||
resources.GetString("lsOutCurveComboBox.Items3")});
|
||||
resources.ApplyResources(this.lsOutCurveComboBox, "lsOutCurveComboBox");
|
||||
this.lsOutCurveComboBox.Name = "lsOutCurveComboBox";
|
||||
this.lsOutCurveComboBox.SelectedIndexChanged += new System.EventHandler(this.lsOutCurveComboBox_SelectedIndexChanged);
|
||||
//
|
||||
// label10
|
||||
//
|
||||
resources.ApplyResources(this.label10, "label10");
|
||||
this.label10.Name = "label10";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
resources.ApplyResources(this.label9, "label9");
|
||||
this.label9.Name = "label9";
|
||||
//
|
||||
// tpRotation
|
||||
//
|
||||
this.tpRotation.Controls.Add(this.nUDRSRotation);
|
||||
@ -3795,40 +3875,6 @@
|
||||
resources.ApplyResources(this.alwaysOnToolStripMenuItem, "alwaysOnToolStripMenuItem");
|
||||
this.alwaysOnToolStripMenuItem.CheckedChanged += new System.EventHandler(this.SATrigger_CheckedChanged);
|
||||
//
|
||||
// label21
|
||||
//
|
||||
resources.ApplyResources(this.label21, "label21");
|
||||
this.label21.Name = "label21";
|
||||
//
|
||||
// label22
|
||||
//
|
||||
resources.ApplyResources(this.label22, "label22");
|
||||
this.label22.Name = "label22";
|
||||
//
|
||||
// cBL2OutputCurve
|
||||
//
|
||||
this.cBL2OutputCurve.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cBL2OutputCurve.FormattingEnabled = true;
|
||||
this.cBL2OutputCurve.Items.AddRange(new object[] {
|
||||
resources.GetString("cBL2OutputCurve.Items"),
|
||||
resources.GetString("cBL2OutputCurve.Items1"),
|
||||
resources.GetString("cBL2OutputCurve.Items2")});
|
||||
resources.ApplyResources(this.cBL2OutputCurve, "cBL2OutputCurve");
|
||||
this.cBL2OutputCurve.Name = "cBL2OutputCurve";
|
||||
this.cBL2OutputCurve.SelectedIndexChanged += new System.EventHandler(this.cBL2OutputCurve_SelectedIndexChanged);
|
||||
//
|
||||
// cBR2OutputCurve
|
||||
//
|
||||
this.cBR2OutputCurve.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cBR2OutputCurve.FormattingEnabled = true;
|
||||
this.cBR2OutputCurve.Items.AddRange(new object[] {
|
||||
resources.GetString("cBR2OutputCurve.Items"),
|
||||
resources.GetString("cBR2OutputCurve.Items1"),
|
||||
resources.GetString("cBR2OutputCurve.Items2")});
|
||||
resources.ApplyResources(this.cBR2OutputCurve, "cBR2OutputCurve");
|
||||
this.cBR2OutputCurve.Name = "cBR2OutputCurve";
|
||||
this.cBR2OutputCurve.SelectedIndexChanged += new System.EventHandler(this.cBR2OutputCurve_SelectedIndexChanged);
|
||||
//
|
||||
// Options
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
@ -3923,12 +3969,12 @@
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDL2Maxzone)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDRSMaxZone)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDLSMaxZone)).EndInit();
|
||||
this.tPOutCurve.ResumeLayout(false);
|
||||
this.tPOutCurve.PerformLayout();
|
||||
this.tPCurve.ResumeLayout(false);
|
||||
this.tPCurve.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDLSCurve)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDRSCurve)).EndInit();
|
||||
this.tPOutCurve.ResumeLayout(false);
|
||||
this.tPOutCurve.PerformLayout();
|
||||
this.tpRotation.ResumeLayout(false);
|
||||
this.tpRotation.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDRSRotation)).EndInit();
|
||||
@ -4286,5 +4332,9 @@
|
||||
private System.Windows.Forms.Label label21;
|
||||
private System.Windows.Forms.ComboBox cBR2OutputCurve;
|
||||
private System.Windows.Forms.ComboBox cBL2OutputCurve;
|
||||
private System.Windows.Forms.ComboBox cBSixaxisZOutputCurve;
|
||||
private System.Windows.Forms.ComboBox cBSixaxisXOutputCurve;
|
||||
private System.Windows.Forms.Label label24;
|
||||
private System.Windows.Forms.Label label23;
|
||||
}
|
||||
}
|
@ -370,6 +370,8 @@ namespace DS4Windows
|
||||
rsOutCurveComboBox.SelectedIndex = getRsOutCurveMode(device);
|
||||
cBL2OutputCurve.SelectedIndex = getL2OutCurveMode(device);
|
||||
cBR2OutputCurve.SelectedIndex = getR2OutCurveMode(device);
|
||||
cBSixaxisXOutputCurve.SelectedIndex = getSXOutCurveMode(device);
|
||||
cBSixaxisZOutputCurve.SelectedIndex = getSZOutCurveMode(device);
|
||||
|
||||
try
|
||||
{
|
||||
@ -661,6 +663,8 @@ namespace DS4Windows
|
||||
rsOutCurveComboBox.SelectedIndex = 0;
|
||||
cBL2OutputCurve.SelectedIndex = 0;
|
||||
cBR2OutputCurve.SelectedIndex = 0;
|
||||
cBSixaxisXOutputCurve.SelectedIndex = 0;
|
||||
cBSixaxisZOutputCurve.SelectedIndex = 0;
|
||||
rBTPMouse.Checked = true;
|
||||
rBSAControls.Checked = true;
|
||||
ToggleRainbow(false);
|
||||
@ -1354,6 +1358,8 @@ namespace DS4Windows
|
||||
rsOutCurveMode[device] = rsOutCurveComboBox.SelectedIndex;
|
||||
l2OutCurveMode[device] = cBL2OutputCurve.SelectedIndex;
|
||||
r2OutCurveMode[device] = cBR2OutputCurve.SelectedIndex;
|
||||
sxOutCurveMode[device] = cBSixaxisXOutputCurve.SelectedIndex;
|
||||
szOutCurveMode[device] = cBSixaxisZOutputCurve.SelectedIndex;
|
||||
L2Deadzone[device] = (byte)Math.Round((nUDL2.Value * 255), 0);
|
||||
R2Deadzone[device] = (byte)Math.Round((nUDR2.Value * 255), 0);
|
||||
L2AntiDeadzone[device] = (int)(nUDL2AntiDead.Value * 100);
|
||||
@ -3020,6 +3026,22 @@ namespace DS4Windows
|
||||
}
|
||||
}
|
||||
|
||||
private void cBSixaxisXOutputCurve_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (loading == false)
|
||||
{
|
||||
sxOutCurveMode[device] = cBSixaxisXOutputCurve.SelectedIndex;
|
||||
}
|
||||
}
|
||||
|
||||
private void cBSixaxisZOutputCurve_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (loading == false)
|
||||
{
|
||||
szOutCurveMode[device] = cBSixaxisZOutputCurve.SelectedIndex;
|
||||
}
|
||||
}
|
||||
|
||||
private void Options_Resize(object sender, EventArgs e)
|
||||
{
|
||||
fLPSettings.AutoScroll = false;
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user