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;
|
||||
|
||||
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