mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-02 05:54:20 +01:00
Restart pending output report count when a change is detected
This commit is contained in:
parent
9045d18092
commit
a894179c98
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user