mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 01:39:17 +01:00
Fixed device event queueing
This commit is contained in:
parent
eb66f38167
commit
60a0f3fda0
@ -1091,15 +1091,15 @@ namespace DS4Windows
|
|||||||
error = string.Empty;
|
error = string.Empty;
|
||||||
|
|
||||||
cState.CopyTo(pState);
|
cState.CopyTo(pState);
|
||||||
}
|
|
||||||
|
|
||||||
lock (eventQueueLock)
|
lock (eventQueueLock)
|
||||||
{
|
|
||||||
Action tempAct = null;
|
|
||||||
for (int actInd = 0, actLen = eventQueue.Count; actInd < actLen; actInd++)
|
|
||||||
{
|
{
|
||||||
tempAct = eventQueue.Dequeue();
|
Action tempAct = null;
|
||||||
tempAct.Invoke();
|
for (int actInd = 0, actLen = eventQueue.Count; actInd < actLen; actInd++)
|
||||||
|
{
|
||||||
|
tempAct = eventQueue.Dequeue();
|
||||||
|
tempAct.Invoke();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user