예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            this.KeyDown += new KeyEventHandler(keydown);
            this.KeyUp += new KeyEventHandler(keyup);

            hawk = new MotorHawk(1);
            hawk.stop();
        }
예제 #2
0
        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();
        }