mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-29 20:44:20 +01:00
Merge branch 'mika-n-jay' into jay
This commit is contained in:
commit
270ee17682
1030
DS4Windows/DS4Forms/Options.Designer.cs
generated
1030
DS4Windows/DS4Forms/Options.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@ -152,21 +152,19 @@ namespace DS4Windows.Forms
|
|||||||
populateHoverImageDict();
|
populateHoverImageDict();
|
||||||
populateHoverLabelDict();
|
populateHoverLabelDict();
|
||||||
|
|
||||||
tBCustomOutputCurve.Text = String.Empty;
|
tBLSCustomOutputCurve.Text = String.Empty;
|
||||||
//lbCurveEditorURL.Text = $" - {lbCurveEditorURL.Text}";
|
|
||||||
tBCustomOutputCurve.Enabled = lbCurveEditorURL.Enabled = false;
|
|
||||||
tBRSCustomOutputCurve.Text = String.Empty;
|
tBRSCustomOutputCurve.Text = String.Empty;
|
||||||
tBRSCustomOutputCurve.Enabled = lbRSCurveEditorURL.Enabled = false;
|
|
||||||
tBL2CustomOutputCurve.Text = String.Empty;
|
tBL2CustomOutputCurve.Text = String.Empty;
|
||||||
tBL2CustomOutputCurve.Enabled = lbL2CurveEditorURL.Enabled = false;
|
|
||||||
tBR2CustomOutputCurve.Text = String.Empty;
|
tBR2CustomOutputCurve.Text = String.Empty;
|
||||||
tBR2CustomOutputCurve.Enabled = lbR2CurveEditorURL.Enabled = false;
|
|
||||||
tBSixXCustomOutputCurve.Text = String.Empty;
|
tBSixXCustomOutputCurve.Text = String.Empty;
|
||||||
tBSixXCustomOutputCurve.Enabled = lbSixXCurveEditorURL.Enabled = false;
|
|
||||||
tBSixZCustomOutputCurve.Text = String.Empty;
|
tBSixZCustomOutputCurve.Text = String.Empty;
|
||||||
tBSixZCustomOutputCurve.Enabled = lbSixZCurveEditorURL.Enabled = false;
|
|
||||||
|
CustomCurveChecker();
|
||||||
|
|
||||||
SetupEvents();
|
SetupEvents();
|
||||||
|
|
||||||
|
tp.SetToolTip(RoundnessNUpDown, Properties.Resources.SquareStickRoundness);
|
||||||
|
tp.SetToolTip(numericUpDown1, Properties.Resources.SquareStickRoundness);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TriggerCondAndCombo_SelectedIndexChanged(object sender, EventArgs e)
|
private void TriggerCondAndCombo_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
@ -342,15 +340,13 @@ namespace DS4Windows.Forms
|
|||||||
RoundnessNUpDown.ValueChanged += RoundnessNUpDown_ValueChanged;
|
RoundnessNUpDown.ValueChanged += RoundnessNUpDown_ValueChanged;
|
||||||
nUDLSCurve.ValueChanged += nUDLSCurve_ValueChanged;
|
nUDLSCurve.ValueChanged += nUDLSCurve_ValueChanged;
|
||||||
nUDLSRotation.ValueChanged += nUDLSRotation_ValueChanged;
|
nUDLSRotation.ValueChanged += nUDLSRotation_ValueChanged;
|
||||||
tBCustomOutputCurve.Leave += tBCustomOutputCurve_Leave;
|
tBLSCustomOutputCurve.Leave += tBCustomOutputCurve_Leave;
|
||||||
lbCurveEditorURL.LinkClicked += lbCurveEditorURL_LinkClicked;
|
|
||||||
nUDRS.ValueChanged += numUDRS_ValueChanged;
|
nUDRS.ValueChanged += numUDRS_ValueChanged;
|
||||||
nUDRSMaxZone.ValueChanged += nUDRSMaxZone_ValueChanged;
|
nUDRSMaxZone.ValueChanged += nUDRSMaxZone_ValueChanged;
|
||||||
nUDRSAntiDead.ValueChanged += nUDRSAntiDead_ValueChanged;
|
nUDRSAntiDead.ValueChanged += nUDRSAntiDead_ValueChanged;
|
||||||
nUDRSS.ValueChanged += nUDRSSens_ValueChanged;
|
nUDRSS.ValueChanged += nUDRSSens_ValueChanged;
|
||||||
rsOutCurveComboBox.SelectedIndexChanged += rsOutCurveComboBox_SelectedIndexChanged;
|
rsOutCurveComboBox.SelectedIndexChanged += rsOutCurveComboBox_SelectedIndexChanged;
|
||||||
tBRSCustomOutputCurve.Leave += TBRSCustomOutputCurve_Leave;
|
tBRSCustomOutputCurve.Leave += TBRSCustomOutputCurve_Leave;
|
||||||
lbRSCurveEditorURL.Click += LbRSCurveEditorURL_Click;
|
|
||||||
rsSquStickCk.Click += rsSquStickCk_Click;
|
rsSquStickCk.Click += rsSquStickCk_Click;
|
||||||
nUDRSCurve.ValueChanged += nUDRSCurve_ValueChanged;
|
nUDRSCurve.ValueChanged += nUDRSCurve_ValueChanged;
|
||||||
nUDRSRotation.ValueChanged += nUDRSRotation_ValueChanged;
|
nUDRSRotation.ValueChanged += nUDRSRotation_ValueChanged;
|
||||||
@ -360,14 +356,12 @@ namespace DS4Windows.Forms
|
|||||||
nUDL2S.ValueChanged += nUDL2Sens_ValueChanged;
|
nUDL2S.ValueChanged += nUDL2Sens_ValueChanged;
|
||||||
cBL2OutputCurve.SelectedIndexChanged += cBL2OutputCurve_SelectedIndexChanged;
|
cBL2OutputCurve.SelectedIndexChanged += cBL2OutputCurve_SelectedIndexChanged;
|
||||||
tBL2CustomOutputCurve.Leave += TBL2CustomOutputCurve_Leave;
|
tBL2CustomOutputCurve.Leave += TBL2CustomOutputCurve_Leave;
|
||||||
lbL2CurveEditorURL.Click += LbL2CurveEditorURL_Click;
|
|
||||||
nUDR2.ValueChanged += numUDR2_ValueChanged;
|
nUDR2.ValueChanged += numUDR2_ValueChanged;
|
||||||
nUDR2Maxzone.ValueChanged += nUDR2Maxzone_ValueChanged;
|
nUDR2Maxzone.ValueChanged += nUDR2Maxzone_ValueChanged;
|
||||||
nUDR2AntiDead.ValueChanged += nUDR2AntiDead_ValueChanged;
|
nUDR2AntiDead.ValueChanged += nUDR2AntiDead_ValueChanged;
|
||||||
nUDR2S.ValueChanged += nUDR2Sens_ValueChanged;
|
nUDR2S.ValueChanged += nUDR2Sens_ValueChanged;
|
||||||
cBR2OutputCurve.SelectedIndexChanged += cBR2OutputCurve_SelectedIndexChanged;
|
cBR2OutputCurve.SelectedIndexChanged += cBR2OutputCurve_SelectedIndexChanged;
|
||||||
tBR2CustomOutputCurve.Leave += TBR2CustomOutputCurve_Leave;
|
tBR2CustomOutputCurve.Leave += TBR2CustomOutputCurve_Leave;
|
||||||
lbR2CurveEditorURL.Click += LbR2CurveEditorURL_Click;
|
|
||||||
nUDSX.ValueChanged += nUDSX_ValueChanged;
|
nUDSX.ValueChanged += nUDSX_ValueChanged;
|
||||||
nUDSZ.ValueChanged += nUDSZ_ValueChanged;
|
nUDSZ.ValueChanged += nUDSZ_ValueChanged;
|
||||||
nUDSixAxisXMaxZone.ValueChanged += nUDSixAxisXMaxZone_ValueChanged;
|
nUDSixAxisXMaxZone.ValueChanged += nUDSixAxisXMaxZone_ValueChanged;
|
||||||
@ -378,10 +372,8 @@ namespace DS4Windows.Forms
|
|||||||
nUDSZS.ValueChanged += nUDSZSens_ValueChanged;
|
nUDSZS.ValueChanged += nUDSZSens_ValueChanged;
|
||||||
cBSixaxisXOutputCurve.SelectedIndexChanged += cBSixaxisXOutputCurve_SelectedIndexChanged;
|
cBSixaxisXOutputCurve.SelectedIndexChanged += cBSixaxisXOutputCurve_SelectedIndexChanged;
|
||||||
tBSixXCustomOutputCurve.Leave += TBSixXCustomOutputCurve_Leave;
|
tBSixXCustomOutputCurve.Leave += TBSixXCustomOutputCurve_Leave;
|
||||||
lbSixXCurveEditorURL.Click += LbSixXCurveEditorURL_Click;
|
|
||||||
cBSixaxisZOutputCurve.SelectedIndexChanged += cBSixaxisZOutputCurve_SelectedIndexChanged;
|
cBSixaxisZOutputCurve.SelectedIndexChanged += cBSixaxisZOutputCurve_SelectedIndexChanged;
|
||||||
tBSixZCustomOutputCurve.Leave += TBSixZCustomOutputCurve_Leave;
|
tBSixZCustomOutputCurve.Leave += TBSixZCustomOutputCurve_Leave;
|
||||||
lbSixZCurveEditorURL.Click += LbSixZCurveEditorURL_Click;
|
|
||||||
|
|
||||||
// Gyro events
|
// Gyro events
|
||||||
gyroOutputMode.SelectedIndexChanged += GyroOutputMode_SelectedIndexChanged;
|
gyroOutputMode.SelectedIndexChanged += GyroOutputMode_SelectedIndexChanged;
|
||||||
@ -466,34 +458,14 @@ namespace DS4Windows.Forms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LbSixZCurveEditorURL_Click(object sender, EventArgs e)
|
private void BtnCurveEditor_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string customDefinition = szOutBezierCurveObj[device].ToString();
|
if(sender == BtnLSCurveEditor) LaunchCurveEditor(lsOutBezierCurveObj[device].ToString());
|
||||||
LaunchCurveEditor(customDefinition);
|
else if (sender == btnRSCurveEditor) LaunchCurveEditor(rsOutBezierCurveObj[device].ToString());
|
||||||
}
|
else if (sender == btnL2CurveEditor) LaunchCurveEditor(l2OutBezierCurveObj[device].ToString());
|
||||||
|
else if (sender == btnR2CurveEditor) LaunchCurveEditor(r2OutBezierCurveObj[device].ToString());
|
||||||
private void LbSixXCurveEditorURL_Click(object sender, EventArgs e)
|
else if (sender == btnSixXCurveEditor) LaunchCurveEditor(sxOutBezierCurveObj[device].ToString());
|
||||||
{
|
else if (sender == btnSixZCurveEditor) LaunchCurveEditor(szOutBezierCurveObj[device].ToString());
|
||||||
string customDefinition = sxOutBezierCurveObj[device].ToString();
|
|
||||||
LaunchCurveEditor(customDefinition);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LbR2CurveEditorURL_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
string customDefinition = r2OutBezierCurveObj[device].ToString();
|
|
||||||
LaunchCurveEditor(customDefinition);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LbRSCurveEditorURL_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
string customDefinition = rsOutBezierCurveObj[device].ToString();
|
|
||||||
LaunchCurveEditor(customDefinition);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LbL2CurveEditorURL_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
string customDefinition = l2OutBezierCurveObj[device].ToString();
|
|
||||||
LaunchCurveEditor(customDefinition);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TBSixZCustomOutputCurve_Leave(object sender, EventArgs e)
|
private void TBSixZCustomOutputCurve_Leave(object sender, EventArgs e)
|
||||||
@ -501,7 +473,7 @@ namespace DS4Windows.Forms
|
|||||||
if (loading == false)
|
if (loading == false)
|
||||||
{
|
{
|
||||||
if (cBSixaxisZOutputCurve.SelectedIndex == cBSixaxisZOutputCurve.Items.Count - 1)
|
if (cBSixaxisZOutputCurve.SelectedIndex == cBSixaxisZOutputCurve.Items.Count - 1)
|
||||||
szOutBezierCurveObj[device].InitBezierCurve(tBCustomOutputCurve.Text, BezierCurve.AxisType.SA, true);
|
szOutBezierCurveObj[device].InitBezierCurve(tBSixZCustomOutputCurve.Text, BezierCurve.AxisType.SA, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -510,7 +482,7 @@ namespace DS4Windows.Forms
|
|||||||
if (loading == false)
|
if (loading == false)
|
||||||
{
|
{
|
||||||
if (cBSixaxisXOutputCurve.SelectedIndex == cBSixaxisXOutputCurve.Items.Count - 1)
|
if (cBSixaxisXOutputCurve.SelectedIndex == cBSixaxisXOutputCurve.Items.Count - 1)
|
||||||
sxOutBezierCurveObj[device].InitBezierCurve(tBCustomOutputCurve.Text, BezierCurve.AxisType.SA, true);
|
sxOutBezierCurveObj[device].InitBezierCurve(tBSixXCustomOutputCurve.Text, BezierCurve.AxisType.SA, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -519,7 +491,7 @@ namespace DS4Windows.Forms
|
|||||||
if (loading == false)
|
if (loading == false)
|
||||||
{
|
{
|
||||||
if (cBR2OutputCurve.SelectedIndex == cBR2OutputCurve.Items.Count - 1)
|
if (cBR2OutputCurve.SelectedIndex == cBR2OutputCurve.Items.Count - 1)
|
||||||
r2OutBezierCurveObj[device].InitBezierCurve(tBCustomOutputCurve.Text, BezierCurve.AxisType.L2R2, true);
|
r2OutBezierCurveObj[device].InitBezierCurve(tBR2CustomOutputCurve.Text, BezierCurve.AxisType.L2R2, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -528,7 +500,17 @@ namespace DS4Windows.Forms
|
|||||||
if (loading == false)
|
if (loading == false)
|
||||||
{
|
{
|
||||||
if (cBL2OutputCurve.SelectedIndex == cBL2OutputCurve.Items.Count - 1)
|
if (cBL2OutputCurve.SelectedIndex == cBL2OutputCurve.Items.Count - 1)
|
||||||
l2OutBezierCurveObj[device].InitBezierCurve(tBCustomOutputCurve.Text, BezierCurve.AxisType.L2R2, true);
|
l2OutBezierCurveObj[device].InitBezierCurve(tBL2CustomOutputCurve.Text, BezierCurve.AxisType.L2R2, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void tBCustomOutputCurve_Leave(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (loading == false)
|
||||||
|
{
|
||||||
|
// Focus leaves the custom output curve editbox. Store the new custom curve value into LS/RS/L2/R2/SX/SZ bezierCurve object
|
||||||
|
if (lsOutCurveComboBox.SelectedIndex == lsOutCurveComboBox.Items.Count - 1)
|
||||||
|
lsOutBezierCurveObj[device].InitBezierCurve(tBLSCustomOutputCurve.Text, BezierCurve.AxisType.LSRS, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -537,7 +519,7 @@ namespace DS4Windows.Forms
|
|||||||
if (loading == false)
|
if (loading == false)
|
||||||
{
|
{
|
||||||
if (rsOutCurveComboBox.SelectedIndex == rsOutCurveComboBox.Items.Count - 1)
|
if (rsOutCurveComboBox.SelectedIndex == rsOutCurveComboBox.Items.Count - 1)
|
||||||
rsOutBezierCurveObj[device].InitBezierCurve(tBCustomOutputCurve.Text, BezierCurve.AxisType.LSRS, true);
|
rsOutBezierCurveObj[device].InitBezierCurve(tBRSCustomOutputCurve.Text, BezierCurve.AxisType.LSRS, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1048,19 +1030,14 @@ namespace DS4Windows.Forms
|
|||||||
cBSixaxisXOutputCurve.SelectedIndex = 0;
|
cBSixaxisXOutputCurve.SelectedIndex = 0;
|
||||||
cBSixaxisZOutputCurve.SelectedIndex = 0;
|
cBSixaxisZOutputCurve.SelectedIndex = 0;
|
||||||
|
|
||||||
tBCustomOutputCurve.Text = String.Empty;
|
tBLSCustomOutputCurve.Text = String.Empty;
|
||||||
//lbCurveEditorURL.Text = $" - {lbCurveEditorURL.Text}";
|
|
||||||
tBCustomOutputCurve.Enabled = lbCurveEditorURL.Enabled = false;
|
|
||||||
tBRSCustomOutputCurve.Text = String.Empty;
|
tBRSCustomOutputCurve.Text = String.Empty;
|
||||||
tBRSCustomOutputCurve.Enabled = lbRSCurveEditorURL.Enabled = false;
|
|
||||||
tBL2CustomOutputCurve.Text = String.Empty;
|
tBL2CustomOutputCurve.Text = String.Empty;
|
||||||
tBL2CustomOutputCurve.Enabled = lbL2CurveEditorURL.Enabled = false;
|
|
||||||
tBR2CustomOutputCurve.Text = String.Empty;
|
tBR2CustomOutputCurve.Text = String.Empty;
|
||||||
tBR2CustomOutputCurve.Enabled = lbR2CurveEditorURL.Enabled = false;
|
|
||||||
tBSixXCustomOutputCurve.Text = String.Empty;
|
tBSixXCustomOutputCurve.Text = String.Empty;
|
||||||
tBSixXCustomOutputCurve.Enabled = lbSixXCurveEditorURL.Enabled = false;
|
|
||||||
tBSixZCustomOutputCurve.Text = String.Empty;
|
tBSixZCustomOutputCurve.Text = String.Empty;
|
||||||
tBSixZCustomOutputCurve.Enabled = lbSixZCurveEditorURL.Enabled = false;
|
|
||||||
|
CustomCurveChecker();
|
||||||
|
|
||||||
rBTPMouse.Checked = true;
|
rBTPMouse.Checked = true;
|
||||||
//rBSAControls.Checked = true;
|
//rBSAControls.Checked = true;
|
||||||
@ -3257,13 +3234,11 @@ namespace DS4Windows.Forms
|
|||||||
if (!loading)
|
if (!loading)
|
||||||
{
|
{
|
||||||
bool customIdx = lsOutCurveComboBox.SelectedIndex == lsOutCurveComboBox.Items.Count - 1;
|
bool customIdx = lsOutCurveComboBox.SelectedIndex == lsOutCurveComboBox.Items.Count - 1;
|
||||||
// This same handler is called when combobox label object is clicked. Update curve mode only when sender is ComboxBox with a new selection index
|
if (customIdx)
|
||||||
if (sender is ComboBox && customIdx)
|
|
||||||
setLsOutCurveMode(device, lsOutCurveComboBox.SelectedIndex);
|
setLsOutCurveMode(device, lsOutCurveComboBox.SelectedIndex);
|
||||||
|
|
||||||
tBCustomOutputCurve.Enabled = lbCurveEditorURL.Enabled = customIdx;
|
tBLSCustomOutputCurve.Enabled = BtnLSCurveEditor.Enabled = customIdx;
|
||||||
tBCustomOutputCurve.Text = (customIdx ? lsOutBezierCurveObj[device].ToString() : "");
|
tBLSCustomOutputCurve.Text = (customIdx ? lsOutBezierCurveObj[device].ToString() : "");
|
||||||
//lbCurveEditorURL.Text = $"LS - {lbCurveEditorURL.Text.Substring(5)}";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3272,73 +3247,91 @@ namespace DS4Windows.Forms
|
|||||||
if (!loading)
|
if (!loading)
|
||||||
{
|
{
|
||||||
bool customIdx = rsOutCurveComboBox.SelectedIndex == rsOutCurveComboBox.Items.Count - 1;
|
bool customIdx = rsOutCurveComboBox.SelectedIndex == rsOutCurveComboBox.Items.Count - 1;
|
||||||
if (sender is ComboBox && customIdx)
|
if (customIdx)
|
||||||
setRsOutCurveMode(device, rsOutCurveComboBox.SelectedIndex);
|
setRsOutCurveMode(device, rsOutCurveComboBox.SelectedIndex);
|
||||||
|
|
||||||
tBRSCustomOutputCurve.Enabled = lbRSCurveEditorURL.Enabled = customIdx;
|
tBRSCustomOutputCurve.Enabled = btnRSCurveEditor.Enabled = customIdx;
|
||||||
tBRSCustomOutputCurve.Text = (customIdx ? rsOutBezierCurveObj[device].ToString() : "");
|
tBRSCustomOutputCurve.Text = (customIdx ? rsOutBezierCurveObj[device].ToString() : "");
|
||||||
//lbCurveEditorURL.Text = $"RS - {lbCurveEditorURL.Text.Substring(5)}";
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void cBL2OutputCurve_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (loading == false)
|
||||||
|
{
|
||||||
|
bool customIdx = cBL2OutputCurve.SelectedIndex == cBL2OutputCurve.Items.Count - 1;
|
||||||
|
if (customIdx)
|
||||||
|
setL2OutCurveMode(device, cBL2OutputCurve.SelectedIndex);
|
||||||
|
|
||||||
|
tBL2CustomOutputCurve.Enabled = btnL2CurveEditor.Enabled = customIdx;
|
||||||
|
tBL2CustomOutputCurve.Text = (tBL2CustomOutputCurve.Enabled ? l2OutBezierCurveObj[device].ToString() : "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void cBR2OutputCurve_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (loading == false)
|
||||||
|
{
|
||||||
|
bool customIdx = cBR2OutputCurve.SelectedIndex == cBR2OutputCurve.Items.Count - 1;
|
||||||
|
if (customIdx)
|
||||||
|
setR2OutCurveMode(device, cBR2OutputCurve.SelectedIndex);
|
||||||
|
|
||||||
|
tBR2CustomOutputCurve.Enabled = btnR2CurveEditor.Enabled = customIdx;
|
||||||
|
tBR2CustomOutputCurve.Text = (tBR2CustomOutputCurve.Enabled ? r2OutBezierCurveObj[device].ToString() : "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void cBSixaxisXOutputCurve_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (loading == false)
|
||||||
|
{
|
||||||
|
bool customIdx = cBSixaxisXOutputCurve.SelectedIndex == cBSixaxisXOutputCurve.Items.Count - 1;
|
||||||
|
if (customIdx)
|
||||||
|
setSXOutCurveMode(device, cBSixaxisXOutputCurve.SelectedIndex);
|
||||||
|
|
||||||
|
tBSixXCustomOutputCurve.Enabled = btnSixXCurveEditor.Enabled = customIdx;
|
||||||
|
tBSixXCustomOutputCurve.Text = (tBSixXCustomOutputCurve.Enabled ? sxOutBezierCurveObj[device].ToString() : "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void cBSixaxisZOutputCurve_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (loading == false)
|
||||||
|
{
|
||||||
|
bool customIdx = cBSixaxisZOutputCurve.SelectedIndex == cBSixaxisZOutputCurve.Items.Count - 1;
|
||||||
|
if (customIdx)
|
||||||
|
setSZOutCurveMode(device, cBSixaxisZOutputCurve.SelectedIndex);
|
||||||
|
|
||||||
|
tBSixZCustomOutputCurve.Enabled = btnSixZCurveEditor.Enabled = customIdx;
|
||||||
|
tBSixZCustomOutputCurve.Text = (tBSixZCustomOutputCurve.Enabled ? szOutBezierCurveObj[device].ToString() : "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CustomCurveChecker()
|
private void CustomCurveChecker()
|
||||||
{
|
{
|
||||||
bool customIdx = lsOutCurveComboBox.SelectedIndex == lsOutCurveComboBox.Items.Count - 1;
|
bool customIdx = lsOutCurveComboBox.SelectedIndex == lsOutCurveComboBox.Items.Count - 1;
|
||||||
if (customIdx)
|
tBLSCustomOutputCurve.Enabled = BtnLSCurveEditor.Enabled = customIdx;
|
||||||
{
|
tBLSCustomOutputCurve.Text = (customIdx ? lsOutBezierCurveObj[device].ToString() : "");
|
||||||
tBCustomOutputCurve.Enabled = lbCurveEditorURL.Enabled = customIdx;
|
|
||||||
tBCustomOutputCurve.Text = (customIdx ? lsOutBezierCurveObj[device].ToString() : "");
|
|
||||||
//lbCurveEditorURL.Text = $"LS - {lbCurveEditorURL.Text.Substring(5)}";
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
customIdx = rsOutCurveComboBox.SelectedIndex == rsOutCurveComboBox.Items.Count - 1;
|
customIdx = rsOutCurveComboBox.SelectedIndex == rsOutCurveComboBox.Items.Count - 1;
|
||||||
if (customIdx)
|
tBRSCustomOutputCurve.Enabled = btnRSCurveEditor.Enabled = customIdx;
|
||||||
{
|
|
||||||
tBRSCustomOutputCurve.Enabled = lbRSCurveEditorURL.Enabled = customIdx;
|
|
||||||
tBRSCustomOutputCurve.Text = (customIdx ? rsOutBezierCurveObj[device].ToString() : "");
|
tBRSCustomOutputCurve.Text = (customIdx ? rsOutBezierCurveObj[device].ToString() : "");
|
||||||
//lbCurveEditorURL.Text = $"RS - {lbCurveEditorURL.Text.Substring(5)}";
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
customIdx = cBL2OutputCurve.SelectedIndex == cBL2OutputCurve.Items.Count - 1;
|
customIdx = cBL2OutputCurve.SelectedIndex == cBL2OutputCurve.Items.Count - 1;
|
||||||
if (customIdx)
|
tBL2CustomOutputCurve.Enabled = btnL2CurveEditor.Enabled = customIdx;
|
||||||
{
|
tBL2CustomOutputCurve.Text = (customIdx ? l2OutBezierCurveObj[device].ToString() : "");
|
||||||
tBL2CustomOutputCurve.Enabled = lbL2CurveEditorURL.Enabled = customIdx;
|
|
||||||
tBL2CustomOutputCurve.Text = (tBL2CustomOutputCurve.Enabled ? l2OutBezierCurveObj[device].ToString() : "");
|
|
||||||
//lbCurveEditorURL.Text = $"L2 - {lbCurveEditorURL.Text.Substring(5)}";
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
customIdx = cBR2OutputCurve.SelectedIndex == cBR2OutputCurve.Items.Count - 1;
|
customIdx = cBR2OutputCurve.SelectedIndex == cBR2OutputCurve.Items.Count - 1;
|
||||||
if (customIdx)
|
tBR2CustomOutputCurve.Enabled = btnR2CurveEditor.Enabled = customIdx;
|
||||||
{
|
tBR2CustomOutputCurve.Text = (customIdx ? r2OutBezierCurveObj[device].ToString() : "");
|
||||||
tBR2CustomOutputCurve.Enabled = lbR2CurveEditorURL.Enabled = customIdx;
|
|
||||||
tBR2CustomOutputCurve.Text = (tBR2CustomOutputCurve.Enabled ? r2OutBezierCurveObj[device].ToString() : "");
|
|
||||||
//lbCurveEditorURL.Text = $"R2 - {lbCurveEditorURL.Text.Substring(5)}";
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
customIdx = cBSixaxisXOutputCurve.SelectedIndex == cBSixaxisXOutputCurve.Items.Count - 1;
|
customIdx = cBSixaxisXOutputCurve.SelectedIndex == cBSixaxisXOutputCurve.Items.Count - 1;
|
||||||
if (customIdx)
|
tBSixXCustomOutputCurve.Enabled = btnSixXCurveEditor.Enabled = customIdx;
|
||||||
{
|
tBSixXCustomOutputCurve.Text = (customIdx ? sxOutBezierCurveObj[device].ToString() : "");
|
||||||
tBSixXCustomOutputCurve.Enabled = lbSixXCurveEditorURL.Enabled = customIdx;
|
|
||||||
tBSixXCustomOutputCurve.Text = (tBSixXCustomOutputCurve.Enabled ? sxOutBezierCurveObj[device].ToString() : "");
|
|
||||||
//lbCurveEditorURL.Text = $"SX - {lbCurveEditorURL.Text.Substring(5)}";
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
customIdx = cBSixaxisZOutputCurve.SelectedIndex == cBSixaxisZOutputCurve.Items.Count - 1;
|
customIdx = cBSixaxisZOutputCurve.SelectedIndex == cBSixaxisZOutputCurve.Items.Count - 1;
|
||||||
if (customIdx)
|
tBSixZCustomOutputCurve.Enabled = btnSixZCurveEditor.Enabled = customIdx;
|
||||||
{
|
tBSixZCustomOutputCurve.Text = (customIdx ? szOutBezierCurveObj[device].ToString() : "");
|
||||||
tBSixZCustomOutputCurve.Enabled = lbCurveEditorURL.Enabled = customIdx;
|
|
||||||
tBSixZCustomOutputCurve.Text = (tBSixZCustomOutputCurve.Enabled ? szOutBezierCurveObj[device].ToString() : "");
|
|
||||||
//lbCurveEditorURL.Text = $"SZ - {lbCurveEditorURL.Text.Substring(5)}";
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
end:
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void gyroTriggerBehavior_CheckedChanged(object sender, EventArgs e)
|
private void gyroTriggerBehavior_CheckedChanged(object sender, EventArgs e)
|
||||||
@ -3442,62 +3435,6 @@ namespace DS4Windows.Forms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cBL2OutputCurve_SelectedIndexChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (loading == false)
|
|
||||||
{
|
|
||||||
bool customIdx = cBL2OutputCurve.SelectedIndex == cBL2OutputCurve.Items.Count - 1;
|
|
||||||
if (sender is ComboBox && customIdx)
|
|
||||||
setL2OutCurveMode(device, cBL2OutputCurve.SelectedIndex);
|
|
||||||
|
|
||||||
tBL2CustomOutputCurve.Enabled = lbL2CurveEditorURL.Enabled = customIdx;
|
|
||||||
tBL2CustomOutputCurve.Text = (tBL2CustomOutputCurve.Enabled ? l2OutBezierCurveObj[device].ToString() : "");
|
|
||||||
//lbCurveEditorURL.Text = $"L2 - {lbCurveEditorURL.Text.Substring(5)}";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void cBR2OutputCurve_SelectedIndexChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (loading == false)
|
|
||||||
{
|
|
||||||
bool customIdx = cBR2OutputCurve.SelectedIndex == cBR2OutputCurve.Items.Count - 1;
|
|
||||||
if (sender is ComboBox && customIdx)
|
|
||||||
setR2OutCurveMode(device, cBR2OutputCurve.SelectedIndex);
|
|
||||||
|
|
||||||
tBR2CustomOutputCurve.Enabled = lbR2CurveEditorURL.Enabled = customIdx;
|
|
||||||
tBR2CustomOutputCurve.Text = (tBR2CustomOutputCurve.Enabled ? r2OutBezierCurveObj[device].ToString() : "");
|
|
||||||
//lbCurveEditorURL.Text = $"R2 - {lbCurveEditorURL.Text.Substring(5)}";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void cBSixaxisXOutputCurve_SelectedIndexChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (loading == false)
|
|
||||||
{
|
|
||||||
bool customIdx = cBSixaxisXOutputCurve.SelectedIndex == cBSixaxisXOutputCurve.Items.Count - 1;
|
|
||||||
if (sender is ComboBox && customIdx)
|
|
||||||
setSXOutCurveMode(device, cBSixaxisXOutputCurve.SelectedIndex);
|
|
||||||
|
|
||||||
tBSixXCustomOutputCurve.Enabled = lbSixXCurveEditorURL.Enabled = customIdx;
|
|
||||||
tBSixXCustomOutputCurve.Text = (tBSixXCustomOutputCurve.Enabled ? sxOutBezierCurveObj[device].ToString() : "");
|
|
||||||
//lbCurveEditorURL.Text = $"SX - {lbCurveEditorURL.Text.Substring(5)}";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void cBSixaxisZOutputCurve_SelectedIndexChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (loading == false)
|
|
||||||
{
|
|
||||||
bool customIdx = cBSixaxisZOutputCurve.SelectedIndex == cBSixaxisZOutputCurve.Items.Count - 1;
|
|
||||||
if (sender is ComboBox && customIdx)
|
|
||||||
setSZOutCurveMode(device, cBSixaxisZOutputCurve.SelectedIndex);
|
|
||||||
|
|
||||||
tBSixZCustomOutputCurve.Enabled = lbSixZCurveEditorURL.Enabled = customIdx;
|
|
||||||
tBSixZCustomOutputCurve.Text = (tBSixZCustomOutputCurve.Enabled ? szOutBezierCurveObj[device].ToString() : "");
|
|
||||||
//lbCurveEditorURL.Text = $"SZ - {lbCurveEditorURL.Text.Substring(5)}";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void TouchDisableInvert_CheckedChanged(object sender, EventArgs e)
|
private void TouchDisableInvert_CheckedChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (loading == false)
|
if (loading == false)
|
||||||
@ -3738,22 +3675,6 @@ namespace DS4Windows.Forms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void lbCurveEditorURL_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
||||||
{
|
|
||||||
string customDefinition = lsOutBezierCurveObj[device].ToString();
|
|
||||||
LaunchCurveEditor(customDefinition);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void tBCustomOutputCurve_Leave(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (loading == false)
|
|
||||||
{
|
|
||||||
// Focus leaves the custom output curve editbox. Store the new custom curve value into LS/RS/L2/R2/SX/SZ bezierCurve object
|
|
||||||
if (lsOutCurveComboBox.SelectedIndex == lsOutCurveComboBox.Items.Count - 1)
|
|
||||||
lsOutBezierCurveObj[device].InitBezierCurve(tBCustomOutputCurve.Text, BezierCurve.AxisType.LSRS, true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void GyroOutputMode_SelectedIndexChanged(object sender, EventArgs e)
|
private void GyroOutputMode_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (loading == false)
|
if (loading == false)
|
||||||
|
@ -742,4 +742,46 @@
|
|||||||
<data name="twoFingerTouchInvStripMenuItem.Text" xml:space="preserve">
|
<data name="twoFingerTouchInvStripMenuItem.Text" xml:space="preserve">
|
||||||
<value>2 sormea kosketuslevyllä</value>
|
<value>2 sormea kosketuslevyllä</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="btnSATrack.Text" xml:space="preserve">
|
||||||
|
<value>nappi1</value>
|
||||||
|
</data>
|
||||||
|
<data name="circleTouchInvStripMenuItem.Text" xml:space="preserve">
|
||||||
|
<value>Ympyrä</value>
|
||||||
|
</data>
|
||||||
|
<data name="circleToolStripMenuItem.Text" xml:space="preserve">
|
||||||
|
<value>Ympyrä</value>
|
||||||
|
</data>
|
||||||
|
<data name="lBControls.Items1" xml:space="preserve">
|
||||||
|
<value>Ympyrä:</value>
|
||||||
|
</data>
|
||||||
|
<data name="gyroOutputMode.Items" xml:space="preserve">
|
||||||
|
<value>Kontrollit</value>
|
||||||
|
</data>
|
||||||
|
<data name="downTouchInvStripMenuItem.Text" xml:space="preserve">
|
||||||
|
<value>Alas</value>
|
||||||
|
</data>
|
||||||
|
<data name="downToolStripMenuItem.Text" xml:space="preserve">
|
||||||
|
<value>Alas</value>
|
||||||
|
</data>
|
||||||
|
<data name="lBControls.Items7" xml:space="preserve">
|
||||||
|
<value>Alas:</value>
|
||||||
|
</data>
|
||||||
|
<data name="gyroMStickUseSmoothCk.Text" xml:space="preserve">
|
||||||
|
<value>Tasaaminen</value>
|
||||||
|
</data>
|
||||||
|
<data name="gyroMStickToggleCk.Text" xml:space="preserve">
|
||||||
|
<value>Kytke</value>
|
||||||
|
</data>
|
||||||
|
<data name="squareTouchInvStripMenuItem.Text" xml:space="preserve">
|
||||||
|
<value>Neliö</value>
|
||||||
|
</data>
|
||||||
|
<data name="squareToolStripMenuItem.Text" xml:space="preserve">
|
||||||
|
<value>Neliö</value>
|
||||||
|
</data>
|
||||||
|
<data name="lBControls.Items2" xml:space="preserve">
|
||||||
|
<value>Neliö :</value>
|
||||||
|
</data>
|
||||||
|
<data name="label4.Text" xml:space="preserve">
|
||||||
|
<value>Neliötikku</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
File diff suppressed because it is too large
Load Diff
9
DS4Windows/Properties/Resources.Designer.cs
generated
9
DS4Windows/Properties/Resources.Designer.cs
generated
@ -1882,6 +1882,15 @@ namespace DS4Windows.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Roundness of Square Stick corners.
|
||||||
|
/// </summary>
|
||||||
|
public static string SquareStickRoundness {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("SquareStickRoundness", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -630,4 +630,7 @@
|
|||||||
<data name="MacroKeepKeyStateTip" xml:space="preserve">
|
<data name="MacroKeepKeyStateTip" xml:space="preserve">
|
||||||
<value>Säilytä napin tilatieto kun makron suoritus on päättynyt (jos makro jättää napin Painettu-tilaan, niin makron suoritus ei automaattisesti palauta napin tilatietoa takaisin oletustilaan)</value>
|
<value>Säilytä napin tilatieto kun makron suoritus on päättynyt (jos makro jättää napin Painettu-tilaan, niin makron suoritus ei automaattisesti palauta napin tilatietoa takaisin oletustilaan)</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="SquareStickRoundness" xml:space="preserve">
|
||||||
|
<value>Neliötikun kulmien pyöristys</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
@ -847,4 +847,7 @@
|
|||||||
<data name="MacroKeepKeyStateTip" xml:space="preserve">
|
<data name="MacroKeepKeyStateTip" xml:space="preserve">
|
||||||
<value>Keep the last key state when macro execution is completed (ie. if a key is left in down state then it is not automatically reset back to default state)</value>
|
<value>Keep the last key state when macro execution is completed (ie. if a key is left in down state then it is not automatically reset back to default state)</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="SquareStickRoundness" xml:space="preserve">
|
||||||
|
<value>Roundness of Square Stick corners</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
Loading…
Reference in New Issue
Block a user