public MainWindow() { InitializeComponent(); this.KeyDown += new KeyEventHandler(keydown); this.KeyUp += new KeyEventHandler(keyup); hawk = new MotorHawk(1); hawk.stop(); }
public Server(string host, int port) { hawk = new MotorHawk(1); hawk.stop(); i = new InputThread(host, port); iThread = new Thread(new ThreadStart(i.process)); i.Input += new InputThread.InputHandler(handler); // Start up the thread iThread.Start(); }