예제 #1
0
        public RemoconLogger(string name)
            : base(name)
        {
            timer = new MatTimer(10);
            timer.MatTickEvent += Timer_MatTickEvent;

            view = new RemoconLoggerControl() { DataContext = this };

            CommandIn.MatDataInput += CommandIn_MatDataInput;

            inputs.Add(CommandIn);
            outputs.Add(CommandOut);

            App.Current.Exit += Current_Exit;
        }
예제 #2
0
 public void OutputACommand(DUALSHOCK3 command)
 {
     MatTimer timer = new MatTimer(1);
     Command.Value = new MatData(typeof(DUALSHOCK3), command);
 }
예제 #3
0
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            view = new Mat3DView();
            view.Host.Activated += Host_Activated;
            view.Host.Deactivated += Host_Deactivated;
            view.Host.KeyDown += Host_KeyDown;
            view.Host.KeyUp += Host_KeyUp;
            view.Host.MouseMove += Host_MouseMove;
            view.Host.MouseDown += Host_MouseDown;
            view.Host.MouseUp += Host_MouseUp;

            world1 = new TestWorld();
            view.CurrentWorld = world1;

            inputClock = new MatTimer(1000.0 / 60.0);
            inputClock.MatTickEvent += InputClock_MatTickEvent;
            inputClock.Start();

            mouseLock = true;
            view.Host.Cursor = Cursors.None;
            SetCursorPos(500, 500);
        }