Esempio n. 1
0
        public LinearizeForm()
        {
            InitializeComponent();

            this.watch = new System.Diagnostics.Stopwatch();
            this.xim = Singleton<XimDyn>.Instance;
            this.xim.Init();
        }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();
            dyn = XimDyn.Instance;
            dyn.Init();

            Thread thread = new Thread(new ThreadStart(myThread.Go));
            thread.Start();
            myThread.deadzone = short.Parse(txDeadzone.Text);
        }
Esempio n. 3
0
 public UtilThread()
 {
     ximDyn = XimDyn.Instance;
 }
Esempio n. 4
0
 public MyThreadObj()
 {
     xim = XimDyn.Instance;
     xim.Init();
 }
Esempio n. 5
0
        public Ximulator(xEmulateForm form)
        {
            this.ximDyn = XimDyn.Instance;

            m_form = form;

            m_varManager = VarManager.Instance;
            m_eventManager = EventManager.Instance;
            m_textModeManager = TextModeManager.Instance;
            m_inputManager = InputManager.Instance;
            m_infoTextManager = InfoTextManager.Instance;

            m_prevMouseStates = new Queue<Vector2>();

            // Init the vars so we dont have to get them again.
            m_varManager.GetVar("rate", out m_rate);
            m_varManager.GetVar("textmode", out m_textMode);
            m_varManager.GetVar("textmoderate", out m_textModeRate);
            m_varManager.GetVar("autoanalogdisconnect", out m_autoAnalogDisconnect);
            m_varManager.GetVar("useximapimousemath", out m_useXimApiMouseMath);

            this.mouseMath = new MouseMath();
            this.betaMouseMath = new BetaMouseMath();

            m_utilThread = new UtilThread();
        }