示例#1
0
文件: MainWindow.cs 项目: kg/DS4_PSO2
        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();
        }
示例#2
0
文件: MainWindow.cs 项目: kg/DS4_PSO2
        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();
        }