iocommander input and virtual input

This commit is contained in:
meelstorm
2025-07-21 12:07:33 +02:00
parent cd70088d9a
commit e761b24c95
21 changed files with 418 additions and 21 deletions

View File

@@ -36,11 +36,7 @@ namespace Hawkeye.VisionBuilder.UI.Sources.Emulation
//clear the channel if it is full
if (_channel.Reader.Count > 0)
{
while (await _channel.Reader.WaitToReadAsync(token))
{
if (_channel.Reader.TryRead(out _)) continue;
break;
}
while (_channel.Reader.TryRead(out _)) { }
}
//get the next image
await Task.Run(new Action(() => _ = GetImageInternal(CancellationToken.None)), token);