private void DispatchEvent(ushort type, ushort code, uint value) { //Console.WriteLine("Dispatching Low Level Event"); if (_device is Keyboard) { InputDevice.EventType eventType = (InputDevice.EventType)type; //Console.WriteLine($"eventType: {eventType} key {type}"); switch (eventType) { case InputDevice.EventType.EV_SYN: //no error throwing here, just ignor type break; case InputDevice.EventType.EV_ABS: break; case InputDevice.EventType.EV_KEY: // key down and key up events //Console.WriteLine("Caught EV_KEY EVENT"); _device.DispatchEvent(code, value); break; case InputDevice.EventType.EV_MSC: break; } } }