Corrections to output packet changes

This commit is contained in:
Travis Nickles 2019-01-09 05:41:20 -06:00
parent bc9a7c3e65
commit 18c27b7f10

View File

@ -658,8 +658,9 @@ namespace DS4Windows
byteR[i] = byteB[i];
}
//outReportBuffer.CopyTo(outputReport, 0);
if (outputPendCount > 0)
outputPendCount--;
standbySw.Reset();
standbySw.Restart();
}
currentRumble = true;
@ -1194,11 +1195,17 @@ namespace DS4Windows
if (synchronous)
{
outputPendCount = 3;
output = output || standbySw.ElapsedMilliseconds >= 4000L;
if (output || change)
{
standbySw.Reset();
if (change)
{
outputPendCount = 3;
}
else if (outputPendCount > 0)
outputPendCount--;
standbySw.Restart();
if (usingBT)
{