Move lightbar color change to execute later

This commit is contained in:
Travis Nickles 2017-05-30 15:00:23 -07:00
parent 24689aa701
commit 0086b953e3

View File

@ -89,7 +89,7 @@ namespace DS4Windows
{
if (DS4Devices.isExclusiveMode && !device.isExclusive())
{
await System.Threading.Tasks.Task.Delay(5);
await Task.Delay(5);
string message = Properties.Resources.CouldNotOpenDS4.Replace("*Mac address*", device.getMacAddress()) + " " +
Properties.Resources.QuitOtherPrograms;
LogDebug(message, true);
@ -716,11 +716,11 @@ namespace DS4Windows
}
}
// Update the GUI/whatever.
DS4LightBar.updateLightBar(device, ind, cState, ExposedState[ind], touchPad[ind]);
// Output any synthetic events.
Mapping.Commit(ind);
// Update the GUI/whatever.
DS4LightBar.updateLightBar(device, ind, cState, ExposedState[ind], touchPad[ind]);
}
}