Update ScanCodeChecker to be compatible with new ScanCodeTester

This commit is contained in:
Clive Galway 2022-01-13 21:39:40 +00:00
parent f7075bbe28
commit db6edd71b4

View File

@ -32,10 +32,8 @@ namespace AutoHotInterception
var stroke = new ManagedWrapper.Stroke();
while (ManagedWrapper.Receive(_deviceContext, i = ManagedWrapper.Wait(_deviceContext), ref stroke, 1) > 0)
{
var keyEvents = new List<KeyEvent>();
keyEvents.Add(new KeyEvent { Code = stroke.key.code, State = stroke.key.state });
ManagedWrapper.Send(_deviceContext, _filteredDevice, ref stroke, 1);
_callback(keyEvents.ToArray());
_callback(new KeyEvent { Code = stroke.key.code, State = stroke.key.state });
}
}