internal static KeyboardPacket CreateTestPacket() { var packet = new KeyboardPacket { IsAvailable = true }; packet.Data[1] = 2; packet.Data[15] = 3; return packet; }
private void AnalyseKeyboardPacket(KeyboardPacket packet) { if (packet != null && activeKeyboard != null) activeKeyboard.HandleNewPacket(packet); }
internal void HandleNewPacket(KeyboardPacket packet) { IsAvailable = packet.IsAvailable; packet.UpdateStatesFromDataBytes(states); }