public void SendInput(ISInputData input) { byte[] data = new byte[6]; data[0] = (byte)IpcMessageType.AnonIpcInputData; input.ToBytes(data, 1); Write(data); }
public void SendInput(ISInputData input, ISServerSocket client) { byte[] data = new byte[6]; data[0] = (byte)UdpMessageType.Input; input.ToBytes(data, 1); udpSocket.BeginSendTo(data, 0, data.Length, 0, client.UdpAddress, SendToCallback, null); }
public void HandleInputReceived(ISInputData input) { if (CurrentInputClient != ISServerSocket.Localhost) { if (CurrentInputClient.IsConnected) { if (CurrentInputClient.UdpEnabled && udpHost != null) { udpHost.SendInput(input, CurrentInputClient); } else { CurrentInputClient.SendInputData(input.ToBytes()); } } else { ISLogger.Write("TARGET NOT CONNECTED"); } } }