mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-30 04:54:20 +01:00
Minor tweak
This commit is contained in:
parent
cc4bc7f05c
commit
60847ee54e
@ -521,10 +521,6 @@ namespace DS4Windows
|
|||||||
//Console.WriteLine(MacAddress.ToString() + " " + System.DateTime.UtcNow.ToString("o") + "> start");
|
//Console.WriteLine(MacAddress.ToString() + " " + System.DateTime.UtcNow.ToString("o") + "> start");
|
||||||
sendOutputReport(true); // initialize the output report
|
sendOutputReport(true); // initialize the output report
|
||||||
|
|
||||||
//if (conType == ConnectionType.BT)
|
|
||||||
{
|
|
||||||
// Only use the output thread for Bluetooth connections.
|
|
||||||
// USB will utilize overlapped IO instead.
|
|
||||||
ds4Output = new Thread(performDs4Output);
|
ds4Output = new Thread(performDs4Output);
|
||||||
ds4Output.Priority = ThreadPriority.AboveNormal;
|
ds4Output.Priority = ThreadPriority.AboveNormal;
|
||||||
ds4Output.Name = "DS4 Output thread: " + Mac;
|
ds4Output.Name = "DS4 Output thread: " + Mac;
|
||||||
@ -536,7 +532,6 @@ namespace DS4Windows
|
|||||||
timeoutCheckThread.Name = "DS4 Timeout thread: " + Mac;
|
timeoutCheckThread.Name = "DS4 Timeout thread: " + Mac;
|
||||||
timeoutCheckThread.IsBackground = true;
|
timeoutCheckThread.IsBackground = true;
|
||||||
timeoutCheckThread.Start();
|
timeoutCheckThread.Start();
|
||||||
}
|
|
||||||
|
|
||||||
ds4Input = new Thread(performDs4Input);
|
ds4Input = new Thread(performDs4Input);
|
||||||
ds4Input.Priority = ThreadPriority.AboveNormal;
|
ds4Input.Priority = ThreadPriority.AboveNormal;
|
||||||
@ -1062,10 +1057,6 @@ namespace DS4Windows
|
|||||||
if (Report != null)
|
if (Report != null)
|
||||||
Report(this, EventArgs.Empty);
|
Report(this, EventArgs.Empty);
|
||||||
|
|
||||||
if (conType == ConnectionType.BT)
|
|
||||||
{
|
|
||||||
syncWriteReport = false;
|
|
||||||
}
|
|
||||||
sendOutputReport(false);
|
sendOutputReport(false);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(currerror))
|
if (!string.IsNullOrEmpty(currerror))
|
||||||
|
Loading…
Reference in New Issue
Block a user