Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();

            UpdaterThread = new Thread(UpdaterThreadFunc);
            UpdaterThread.IsBackground = true;
            UpdaterThread.Priority     = ThreadPriority.AboveNormal;
            UpdaterThread.Name         = "DualShock 4 state monitor";
            UpdaterThread.Start();

            SliderBySensorIndex = new[] { tbGyroX, tbGyroY, tbGyroZ, tbAccelX, tbAccelY, tbAccelZ };

            GestureOverlay     = new GestureOverlay();
            niTrayIcon.Visible = true;

            RefreshProfileList();
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();

            UpdaterThread = new Thread(UpdaterThreadFunc);
            UpdaterThread.IsBackground = true;
            UpdaterThread.Priority = ThreadPriority.AboveNormal;
            UpdaterThread.Name = "DualShock 4 state monitor";
            UpdaterThread.Start();

            SliderBySensorIndex = new[] { tbGyroX, tbGyroY, tbGyroZ, tbAccelX, tbAccelY, tbAccelZ };

            GestureOverlay = new GestureOverlay();
            niTrayIcon.Visible = true;

            RefreshProfileList();
        }