Exemplo n.º 1
0
        static void Main()
        {
            client_connected          = false;
            client_paused             = false;
            selected_move             = 0;
            selected_nav              = 0;
            update_delay              = 16;
            reset_enabled             = new bool[PSMoveSharpState.PSMoveSharpNumMoveControllers];
            image_paused              = true;
            image_update_delay        = 32;
            sliced_image_paused       = true;
            sliced_image_update_delay = 32;
            for (int i = 0; i < PSMoveSharpState.PSMoveSharpNumMoveControllers; i++)
            {
                reset_enabled[i] = true;
            }

            _updateGuiThreadQuit = false;
            updateGuiThread      = new Thread(new ThreadStart(updateGui));

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            form = new MoveSharpGUI();
            updateGuiThread.Start();
            Application.Run(form);

            _updateGuiThreadQuit = true;
            updateGuiThread.Join();

            client_disconnect();
        }
Exemplo n.º 2
0
        static void Main()
        {
            client_connected = false;
            client_paused = false;
            selected_move = 0;
            selected_nav = 0;
            update_delay = 16;
            reset_enabled = new bool[PSMoveSharpState.PSMoveSharpNumMoveControllers];
            image_paused = true;
            image_update_delay = 32;
            sliced_image_paused = true;
            sliced_image_update_delay = 32;
            for (int i = 0; i < PSMoveSharpState.PSMoveSharpNumMoveControllers; i++)
            {
                reset_enabled[i] = true;
            }

            _updateGuiThreadQuit = false;
            updateGuiThread = new Thread(new ThreadStart(updateGui));

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            form = new MoveSharpGUI();
            updateGuiThread.Start();
            Application.Run(form);

            _updateGuiThreadQuit = true;
            updateGuiThread.Join();

            client_disconnect();
        }