Restart pending output report count when a change is detected

This commit is contained in:
Travis Nickles 2017-11-15 02:58:16 -06:00
parent 9045d18092
commit a894179c98

View File

@ -1082,13 +1082,13 @@ namespace DS4Windows
} }
else else
{ {
bool output = outputPendCount > 0; bool output = outputPendCount > 0, change = false;
for (int i = 0, arlen = outputReport.Length; !output && i < arlen; i++) for (int i = 0, arlen = outputReport.Length; !change && i < arlen; i++)
output = outputReport[i] != outputReportBuffer[i]; change = outputReport[i] != outputReportBuffer[i];
if (output) if (output || change)
{ {
if (outputPendCount == 0) if (outputPendCount == 0 || change)
outputPendCount = 3; outputPendCount = 3;
outputRumble = true; outputRumble = true;