public ScanCodeTester(TestDevice device, bool block = false) { scc = new ScanCodeChecker(); var devId = device.GetDeviceId(); if (devId == 0) { return; } scc.Subscribe(devId, new Action <KeyEvent[]>(OnKeyEvent), block); }
public ScanCodeTester() { var scc = new ScanCodeChecker(); scc.Subscribe(0x04F2, 0x0112, new Action <KeyEvent[]>(OnKeyEvent)); }