private static void KeyboardMouseInput()
        {
            while (true)
            {
                TranslateMouse.MouseButtonsInput(Controller);
                TranslateKeyboard.KeyboardInput(Controller);

                SendtoController(Controller);
            }
        }
Exemple #2
0
        private static void KeyboardMouseInput()
        {
            while (!shuttingDown)
            {
                TranslateMouse.MouseButtonsInput(state);
                TranslateKeyboard.KeyboardInput(state);
                SimGamePad.Instance.Update();

                // Poll aggressively, but avoid completely pegging the CPU to 100%.
                Thread.Sleep(1);
            }
        }
Exemple #3
0
        public void SetTickCount(int tickcount)
        {
            if (InvokeRequired)
            {
                this.Invoke((MethodInvoker) delegate {
                    SetTickCount(tickcount);
                });
                return;
            }

            numericUpDown1.Value = tickcount;
            TranslateMouse.SetFramePerTick(tickcount);
            StatusTickCountSaved();
        }
Exemple #4
0
        private static void Init()
        {
            simPad = SimGamePad.Instance;
            try
            {
                simPad.Initialize();
                simPad.PlugIn();
                state = simPad.State[0];
            }
            catch
            {
                ShutDown();
                MessageBox.Show("Could not initialize SimGamePad / ScpBus. Shutting down.");
                Application.Exit();
            }

            TranslateMouse.InitMouse();
        }
        private static void Init()
        {
            Controller = CreateController();

            TranslateMouse.InitMouse();
        }