mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-24 15:41:49 +01:00
Merge branch 'jay' into vigem-udpserver
This commit is contained in:
commit
1a2b6e89c9
@ -183,9 +183,9 @@ namespace DS4Windows
|
||||
|
||||
//try { udpSock.SendTo(packetData, clientEP); }
|
||||
SocketAsyncEventArgs args = argsList[listInd];
|
||||
listInd = ++listInd % 20;
|
||||
args.RemoteEndPoint = clientEP;
|
||||
args.SetBuffer(packetData, 0, packetData.Length);
|
||||
listInd = ++listInd % 20;
|
||||
try {
|
||||
udpSock.SendToAsync(args);
|
||||
}
|
||||
@ -643,9 +643,9 @@ namespace DS4Windows
|
||||
{
|
||||
//try { udpSock.SendTo(outputData, cl); }
|
||||
SocketAsyncEventArgs args = argsList[listInd];
|
||||
listInd = ++listInd % 20;
|
||||
args.RemoteEndPoint = cl;
|
||||
args.SetBuffer(outputData, 0, outputData.Length);
|
||||
listInd = ++listInd % 20;
|
||||
try {
|
||||
udpSock.SendToAsync(args);
|
||||
}
|
||||
|
11
DS4Windows/DS4Forms/DS4Form.Designer.cs
generated
11
DS4Windows/DS4Forms/DS4Form.Designer.cs
generated
@ -165,7 +165,6 @@
|
||||
this.linkUninstall = new System.Windows.Forms.LinkLabel();
|
||||
this.linkSetup = new System.Windows.Forms.LinkLabel();
|
||||
this.lLBUpdate = new System.Windows.Forms.LinkLabel();
|
||||
this.linkSplitLabel = new System.Windows.Forms.Label();
|
||||
this.hidGuardWhiteList = new System.Windows.Forms.LinkLabel();
|
||||
this.clrHidGuardWlistLinkLabel = new System.Windows.Forms.LinkLabel();
|
||||
this.hidGuardRegLinkLabel = new System.Windows.Forms.LinkLabel();
|
||||
@ -1273,7 +1272,6 @@
|
||||
this.flowLayoutPanel1.Controls.Add(this.linkUninstall);
|
||||
this.flowLayoutPanel1.Controls.Add(this.linkSetup);
|
||||
this.flowLayoutPanel1.Controls.Add(this.lLBUpdate);
|
||||
this.flowLayoutPanel1.Controls.Add(this.linkSplitLabel);
|
||||
this.flowLayoutPanel1.Controls.Add(this.hidGuardWhiteList);
|
||||
this.flowLayoutPanel1.Controls.Add(this.clrHidGuardWlistLinkLabel);
|
||||
this.flowLayoutPanel1.Controls.Add(this.hidGuardRegLinkLabel);
|
||||
@ -1316,14 +1314,6 @@
|
||||
this.lLBUpdate.TabStop = true;
|
||||
this.lLBUpdate.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lLBUpdate_LinkClicked);
|
||||
//
|
||||
// linkSplitLabel
|
||||
//
|
||||
resources.ApplyResources(this.linkSplitLabel, "linkSplitLabel");
|
||||
this.linkSplitLabel.BackColor = System.Drawing.SystemColors.ActiveBorder;
|
||||
this.linkSplitLabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.linkSplitLabel.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.linkSplitLabel.Name = "linkSplitLabel";
|
||||
//
|
||||
// hidGuardWhiteList
|
||||
//
|
||||
resources.ApplyResources(this.hidGuardWhiteList, "hidGuardWhiteList");
|
||||
@ -1599,7 +1589,6 @@
|
||||
private System.Windows.Forms.LinkLabel hidGuardWhiteList;
|
||||
private System.Windows.Forms.LinkLabel clrHidGuardWlistLinkLabel;
|
||||
private System.Windows.Forms.LinkLabel hidGuardRegLinkLabel;
|
||||
private System.Windows.Forms.Label linkSplitLabel;
|
||||
private System.Windows.Forms.ToolStripMenuItem openProgramFolderToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
|
||||
private System.Windows.Forms.ToolStripMenuItem disconToolStripMenuItem;
|
||||
|
@ -57,6 +57,7 @@ namespace DS4Windows
|
||||
bool turnOffTemp;
|
||||
bool runningBat;
|
||||
private bool changingService;
|
||||
private IntPtr regHandle = new IntPtr();
|
||||
private static DS4Form instance;
|
||||
Dictionary<Control, string> hoverTextDict = new Dictionary<Control, string>();
|
||||
// 0 index is used for application version text. 1 - 4 indices are used for controller status
|
||||
@ -326,7 +327,6 @@ namespace DS4Windows
|
||||
hidGuardWhiteList.Visible = false;
|
||||
clrHidGuardWlistLinkLabel.Visible = false;
|
||||
hidGuardRegLinkLabel.Visible = false;
|
||||
linkSplitLabel.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1050,8 +1050,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
{
|
||||
Guid hidGuid = new Guid();
|
||||
NativeMethods.HidD_GetHidGuid(ref hidGuid);
|
||||
IntPtr outHandle = new IntPtr();
|
||||
bool result = ScpDevice.RegisterNotify(this.Handle, hidGuid, ref outHandle);
|
||||
bool result = ScpDevice.RegisterNotify(this.Handle, hidGuid, ref regHandle);
|
||||
if (!result)
|
||||
{
|
||||
ScpForm_Closing(this,
|
||||
@ -1081,11 +1080,6 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
}
|
||||
break;
|
||||
}
|
||||
case WM_CLOSE:
|
||||
{
|
||||
ScpDevice.UnregisterNotify(Handle);
|
||||
break;
|
||||
}
|
||||
case WM_QUERYENDSESSION:
|
||||
{
|
||||
systemShutdown = true;
|
||||
@ -2177,6 +2171,14 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
e.Cancel = true;
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
ScpDevice.UnregisterNotify(regHandle);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ScpDevice.UnregisterNotify(Handle);
|
||||
}
|
||||
}
|
||||
else if (userClosing && closeMini && !contextclose)
|
||||
|
@ -445,10 +445,10 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnLight3.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>764, 89</value>
|
||||
<value>754, 89</value>
|
||||
</data>
|
||||
<data name="bnLight3.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>129, 22</value>
|
||||
<value>139, 22</value>
|
||||
</data>
|
||||
<data name="bnLight3.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>50</value>
|
||||
@ -472,7 +472,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="pBStatus1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>360, 34</value>
|
||||
<value>352, 34</value>
|
||||
</data>
|
||||
<data name="pBStatus1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 20</value>
|
||||
@ -574,7 +574,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnEditC3.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>724, 89</value>
|
||||
<value>714, 89</value>
|
||||
</data>
|
||||
<data name="bnEditC3.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>34, 22</value>
|
||||
@ -604,7 +604,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnEditC4.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>724, 117</value>
|
||||
<value>714, 117</value>
|
||||
</data>
|
||||
<data name="bnEditC4.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>34, 22</value>
|
||||
@ -703,7 +703,7 @@
|
||||
<value>None</value>
|
||||
</data>
|
||||
<data name="cBController1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>607, 33</value>
|
||||
<value>597, 33</value>
|
||||
</data>
|
||||
<data name="cBController1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>111, 21</value>
|
||||
@ -730,7 +730,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnEditC2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>724, 61</value>
|
||||
<value>714, 61</value>
|
||||
</data>
|
||||
<data name="bnEditC2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>34, 22</value>
|
||||
@ -757,7 +757,7 @@
|
||||
<value>None</value>
|
||||
</data>
|
||||
<data name="cBController2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>607, 61</value>
|
||||
<value>597, 61</value>
|
||||
</data>
|
||||
<data name="cBController2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>111, 21</value>
|
||||
@ -781,7 +781,7 @@
|
||||
<value>None</value>
|
||||
</data>
|
||||
<data name="cBController3.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>607, 89</value>
|
||||
<value>597, 89</value>
|
||||
</data>
|
||||
<data name="cBController3.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>111, 21</value>
|
||||
@ -808,7 +808,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnEditC1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>724, 33</value>
|
||||
<value>714, 33</value>
|
||||
</data>
|
||||
<data name="bnEditC1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>34, 22</value>
|
||||
@ -835,7 +835,7 @@
|
||||
<value>None</value>
|
||||
</data>
|
||||
<data name="cBController4.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>607, 117</value>
|
||||
<value>597, 117</value>
|
||||
</data>
|
||||
<data name="cBController4.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>111, 21</value>
|
||||
@ -868,7 +868,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbSelectedProfile.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>608, 7</value>
|
||||
<value>598, 7</value>
|
||||
</data>
|
||||
<data name="lbSelectedProfile.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>109, 15</value>
|
||||
@ -940,7 +940,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbStatus.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>356, 7</value>
|
||||
<value>348, 7</value>
|
||||
</data>
|
||||
<data name="lbStatus.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>47, 15</value>
|
||||
@ -976,7 +976,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbBattery.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>452, 7</value>
|
||||
<value>443, 7</value>
|
||||
</data>
|
||||
<data name="lbBattery.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>51, 15</value>
|
||||
@ -1012,7 +1012,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbBatt1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>458, 36</value>
|
||||
<value>449, 36</value>
|
||||
</data>
|
||||
<data name="lbBatt1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 15</value>
|
||||
@ -1048,7 +1048,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbBatt2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>458, 64</value>
|
||||
<value>449, 64</value>
|
||||
</data>
|
||||
<data name="lbBatt2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 15</value>
|
||||
@ -1084,7 +1084,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbBatt3.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>458, 92</value>
|
||||
<value>449, 92</value>
|
||||
</data>
|
||||
<data name="lbBatt3.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 15</value>
|
||||
@ -1120,7 +1120,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbBatt4.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>458, 120</value>
|
||||
<value>449, 120</value>
|
||||
</data>
|
||||
<data name="lbBatt4.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 15</value>
|
||||
@ -1150,7 +1150,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="pBStatus2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>360, 62</value>
|
||||
<value>352, 62</value>
|
||||
</data>
|
||||
<data name="pBStatus2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 20</value>
|
||||
@ -1180,7 +1180,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="pBStatus3.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>360, 90</value>
|
||||
<value>352, 90</value>
|
||||
</data>
|
||||
<data name="pBStatus3.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 20</value>
|
||||
@ -1210,7 +1210,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="pBStatus4.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>360, 118</value>
|
||||
<value>352, 118</value>
|
||||
</data>
|
||||
<data name="pBStatus4.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 20</value>
|
||||
@ -1243,10 +1243,10 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnLight1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>764, 33</value>
|
||||
<value>754, 33</value>
|
||||
</data>
|
||||
<data name="bnLight1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>129, 22</value>
|
||||
<value>139, 22</value>
|
||||
</data>
|
||||
<data name="bnLight1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>50</value>
|
||||
@ -1273,10 +1273,10 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnLight2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>764, 61</value>
|
||||
<value>754, 61</value>
|
||||
</data>
|
||||
<data name="bnLight2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>129, 22</value>
|
||||
<value>139, 22</value>
|
||||
</data>
|
||||
<data name="bnLight2.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>51</value>
|
||||
@ -1303,10 +1303,10 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnLight4.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>764, 117</value>
|
||||
<value>754, 117</value>
|
||||
</data>
|
||||
<data name="bnLight4.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>129, 22</value>
|
||||
<value>139, 22</value>
|
||||
</data>
|
||||
<data name="bnLight4.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>52</value>
|
||||
@ -1336,7 +1336,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbLinkProfile.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>530, 0</value>
|
||||
<value>520, 0</value>
|
||||
</data>
|
||||
<data name="lbLinkProfile.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>67, 30</value>
|
||||
@ -1375,7 +1375,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="linkCB1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>556, 37</value>
|
||||
<value>546, 37</value>
|
||||
</data>
|
||||
<data name="linkCB1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>15, 14</value>
|
||||
@ -1408,7 +1408,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="linkCB2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>556, 65</value>
|
||||
<value>546, 65</value>
|
||||
</data>
|
||||
<data name="linkCB2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>15, 14</value>
|
||||
@ -1441,7 +1441,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="linkCB3.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>556, 93</value>
|
||||
<value>546, 93</value>
|
||||
</data>
|
||||
<data name="linkCB3.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>15, 14</value>
|
||||
@ -1474,7 +1474,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="linkCB4.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>556, 121</value>
|
||||
<value>546, 121</value>
|
||||
</data>
|
||||
<data name="linkCB4.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>15, 14</value>
|
||||
@ -1522,7 +1522,7 @@
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name="tLPControllers.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
|
||||
<value><?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="bnLight3" Row="3" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="pBStatus1" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lbPad1" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbPad2" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="bnEditC3" Row="3" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="bnEditC4" Row="4" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="lbPad3" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbPad4" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="cBController1" Row="1" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="bnEditC2" Row="2" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="cBController2" Row="2" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="cBController3" Row="3" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="bnEditC1" Row="1" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="cBController4" Row="4" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="lbSelectedProfile" Row="0" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="lbID" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbStatus" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lbBattery" Row="0" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt1" Row="1" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt2" Row="2" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt3" Row="3" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt4" Row="4" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="pBStatus2" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="pBStatus3" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="pBStatus4" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="bnLight1" Row="1" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="bnLight2" Row="2" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="bnLight4" Row="4" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="lbLinkProfile" Row="0" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB1" Row="1" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB2" Row="2" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB3" Row="3" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB4" Row="4" RowSpan="1" Column="3" ColumnSpan="1" /></Controls><Columns Styles="Percent,62.29144,Percent,20.02225,Percent,17.68632,Absolute,80,AutoSize,0,AutoSize,0,Absolute,134" /><Rows Styles="AutoSize,0,Percent,25,Percent,25,Percent,25,Percent,25" /></TableLayoutSettings></value>
|
||||
<value><?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="bnLight3" Row="3" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="pBStatus1" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lbPad1" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbPad2" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="bnEditC3" Row="3" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="bnEditC4" Row="4" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="lbPad3" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbPad4" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="cBController1" Row="1" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="bnEditC2" Row="2" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="cBController2" Row="2" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="cBController3" Row="3" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="bnEditC1" Row="1" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="cBController4" Row="4" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="lbSelectedProfile" Row="0" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="lbID" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbStatus" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lbBattery" Row="0" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt1" Row="1" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt2" Row="2" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt3" Row="3" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt4" Row="4" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="pBStatus2" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="pBStatus3" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="pBStatus4" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="bnLight1" Row="1" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="bnLight2" Row="2" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="bnLight4" Row="4" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="lbLinkProfile" Row="0" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB1" Row="1" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB2" Row="2" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB3" Row="3" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB4" Row="4" RowSpan="1" Column="3" ColumnSpan="1" /></Controls><Columns Styles="Percent,62.29144,Percent,20.02225,Percent,17.68632,Absolute,80,AutoSize,0,AutoSize,0,Absolute,144" /><Rows Styles="AutoSize,0,Percent,25,Percent,25,Percent,25,Percent,25" /></TableLayoutSettings></value>
|
||||
</data>
|
||||
<data name="lbNoControllers.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||
<value>Fill</value>
|
||||
@ -2929,7 +2929,7 @@
|
||||
<value>languagePackComboBox1</value>
|
||||
</data>
|
||||
<data name=">>languagePackComboBox1.Type" xml:space="preserve">
|
||||
<value>DS4Windows.DS4Forms.LanguagePackComboBox, DS4Windows, Version=1.5.12.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
<value>DS4Windows.DS4Forms.LanguagePackComboBox, DS4Windows, Version=1.5.13.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>languagePackComboBox1.Parent" xml:space="preserve">
|
||||
<value>fLPSettings</value>
|
||||
@ -3093,36 +3093,6 @@
|
||||
<data name=">>lLBUpdate.ZOrder" xml:space="preserve">
|
||||
<value>4</value>
|
||||
</data>
|
||||
<data name="linkSplitLabel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Left, Right</value>
|
||||
</data>
|
||||
<data name="linkSplitLabel.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="linkSplitLabel.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>7, 73</value>
|
||||
</data>
|
||||
<data name="linkSplitLabel.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>3, 4, 3, 2</value>
|
||||
</data>
|
||||
<data name="linkSplitLabel.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>150, 2</value>
|
||||
</data>
|
||||
<data name="linkSplitLabel.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>56</value>
|
||||
</data>
|
||||
<data name=">>linkSplitLabel.Name" xml:space="preserve">
|
||||
<value>linkSplitLabel</value>
|
||||
</data>
|
||||
<data name=">>linkSplitLabel.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>linkSplitLabel.Parent" xml:space="preserve">
|
||||
<value>flowLayoutPanel1</value>
|
||||
</data>
|
||||
<data name=">>linkSplitLabel.ZOrder" xml:space="preserve">
|
||||
<value>5</value>
|
||||
</data>
|
||||
<data name="hidGuardWhiteList.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
</data>
|
||||
@ -3130,7 +3100,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="hidGuardWhiteList.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>7, 77</value>
|
||||
<value>7, 69</value>
|
||||
</data>
|
||||
<data name="hidGuardWhiteList.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>150, 13</value>
|
||||
@ -3151,7 +3121,7 @@
|
||||
<value>flowLayoutPanel1</value>
|
||||
</data>
|
||||
<data name=">>hidGuardWhiteList.ZOrder" xml:space="preserve">
|
||||
<value>6</value>
|
||||
<value>5</value>
|
||||
</data>
|
||||
<data name="clrHidGuardWlistLinkLabel.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@ -3160,7 +3130,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="clrHidGuardWlistLinkLabel.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>7, 90</value>
|
||||
<value>7, 82</value>
|
||||
</data>
|
||||
<data name="clrHidGuardWlistLinkLabel.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>141, 13</value>
|
||||
@ -3181,7 +3151,7 @@
|
||||
<value>flowLayoutPanel1</value>
|
||||
</data>
|
||||
<data name=">>clrHidGuardWlistLinkLabel.ZOrder" xml:space="preserve">
|
||||
<value>7</value>
|
||||
<value>6</value>
|
||||
</data>
|
||||
<data name="hidGuardRegLinkLabel.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@ -3190,7 +3160,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="hidGuardRegLinkLabel.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>7, 103</value>
|
||||
<value>7, 95</value>
|
||||
</data>
|
||||
<data name="hidGuardRegLinkLabel.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>106, 13</value>
|
||||
@ -3211,7 +3181,7 @@
|
||||
<value>flowLayoutPanel1</value>
|
||||
</data>
|
||||
<data name=">>hidGuardRegLinkLabel.ZOrder" xml:space="preserve">
|
||||
<value>8</value>
|
||||
<value>7</value>
|
||||
</data>
|
||||
<data name="flowLayoutPanel1.FlowDirection" type="System.Windows.Forms.FlowDirection, System.Windows.Forms">
|
||||
<value>TopDown</value>
|
||||
@ -3223,7 +3193,7 @@
|
||||
<value>4, 4, 4, 4</value>
|
||||
</data>
|
||||
<data name="flowLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>166, 122</value>
|
||||
<value>204, 158</value>
|
||||
</data>
|
||||
<data name="flowLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>56</value>
|
||||
@ -3766,7 +3736,7 @@
|
||||
<value>advColorDialog</value>
|
||||
</data>
|
||||
<data name=">>advColorDialog.Type" xml:space="preserve">
|
||||
<value>DS4Windows.AdvancedColorDialog, DS4Windows, Version=1.5.12.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
<value>DS4Windows.AdvancedColorDialog, DS4Windows, Version=1.5.13.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>DS4Form</value>
|
||||
|
@ -150,7 +150,6 @@ namespace DS4Windows
|
||||
public DateTime lastActive = DateTime.UtcNow;
|
||||
public DateTime firstActive = DateTime.UtcNow;
|
||||
private bool charging;
|
||||
private bool outputRumble = false;
|
||||
private int warnInterval = WARN_INTERVAL_USB;
|
||||
public int getWarnInterval()
|
||||
{
|
||||
@ -399,6 +398,7 @@ namespace DS4Windows
|
||||
private bool timeoutExecuted = false;
|
||||
private bool timeoutEvent = false;
|
||||
private bool runCalib;
|
||||
private bool hasInputEvts = false;
|
||||
public bool ShouldRunCalib()
|
||||
{
|
||||
return runCalib;
|
||||
@ -539,6 +539,14 @@ namespace DS4Windows
|
||||
timeoutCheckThread.IsBackground = true;
|
||||
timeoutCheckThread.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
ds4Output = new Thread(OutReportCopy);
|
||||
ds4Output.Priority = ThreadPriority.AboveNormal;
|
||||
ds4Output.Name = "DS4 Arr Copy thread: " + Mac;
|
||||
ds4Output.IsBackground = true;
|
||||
ds4Output.Start();
|
||||
}
|
||||
|
||||
ds4Input = new Thread(performDs4Input);
|
||||
ds4Input.Priority = ThreadPriority.AboveNormal;
|
||||
@ -649,7 +657,6 @@ namespace DS4Windows
|
||||
}
|
||||
//outReportBuffer.CopyTo(outputReport, 0);
|
||||
outputPendCount--;
|
||||
outputRumble = false;
|
||||
}
|
||||
|
||||
currentRumble = true;
|
||||
@ -1092,6 +1099,8 @@ namespace DS4Windows
|
||||
|
||||
cState.CopyTo(pState);
|
||||
|
||||
if (hasInputEvts)
|
||||
{
|
||||
lock (eventQueueLock)
|
||||
{
|
||||
Action tempAct = null;
|
||||
@ -1100,6 +1109,9 @@ namespace DS4Windows
|
||||
tempAct = eventQueue.Dequeue();
|
||||
tempAct.Invoke();
|
||||
}
|
||||
|
||||
hasInputEvts = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1175,7 +1187,6 @@ namespace DS4Windows
|
||||
|
||||
if (synchronous)
|
||||
{
|
||||
outputRumble = false;
|
||||
outputPendCount = 3;
|
||||
|
||||
if (change)
|
||||
@ -1183,9 +1194,8 @@ namespace DS4Windows
|
||||
if (usingBT)
|
||||
{
|
||||
Monitor.Enter(outputReport);
|
||||
}
|
||||
|
||||
outReportBuffer.CopyTo(outputReport, 0);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
@ -1201,6 +1211,10 @@ namespace DS4Windows
|
||||
{
|
||||
Monitor.Exit(outputReport);
|
||||
}
|
||||
else
|
||||
{
|
||||
Monitor.Pulse(outReportBuffer);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -1215,7 +1229,6 @@ namespace DS4Windows
|
||||
outputPendCount = 3;
|
||||
}
|
||||
|
||||
outputRumble = true;
|
||||
Monitor.Pulse(outReportBuffer);
|
||||
}
|
||||
}
|
||||
@ -1228,6 +1241,22 @@ namespace DS4Windows
|
||||
}
|
||||
}
|
||||
|
||||
public void OutReportCopy()
|
||||
{
|
||||
try
|
||||
{
|
||||
while (!exitOutputThread)
|
||||
{
|
||||
lock (outReportBuffer)
|
||||
{
|
||||
outReportBuffer.CopyTo(outputReport, 0);
|
||||
Monitor.Wait(outReportBuffer);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (ThreadInterruptedException) { }
|
||||
}
|
||||
|
||||
public bool DisconnectBT(bool callRemoval = false)
|
||||
{
|
||||
if (Mac != null)
|
||||
@ -1471,6 +1500,7 @@ namespace DS4Windows
|
||||
lock (eventQueueLock)
|
||||
{
|
||||
eventQueue.Enqueue(act);
|
||||
hasInputEvts = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.5.13")]
|
||||
[assembly: AssemblyFileVersion("1.5.13")]
|
||||
[assembly: AssemblyVersion("1.5.14")]
|
||||
[assembly: AssemblyFileVersion("1.5.14")]
|
||||
[assembly: NeutralResourcesLanguage("en")]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user