// PacketID 1 // sends keyboard message public void SendMessage(Cloud.Library.InputState state) { NetOutgoingMessage msg = this.netClient.CreateMessage(); msg.Write((byte)1); foreach (bool key in state.getStateList()) { if (key) { msg.Write((byte)1); } else { msg.Write((byte)0); } } this.netClient.SendMessage(msg, NetDeliveryMethod.Unreliable); }