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