예제 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            vpm = new Controller();
            vpm.OnStateChange += Vpm_OnStateChange;

            vpm.GameName = "ft_l5";
            //vpm.GameName = "flight2k";

            //vpm.HandleKeyboard = true;
            vpm.ShowDMDOnly = false;

            /*
             * vpm.ShowFrame = false;
             * vpm.ShowTitle = false;
             * vpm.DoubleSize = false;
             * vpm.LockDisplay = true;
             * vpm.ShowDMDOnly = true;
             * vpm.Hidden = true;
             */

            this.Text = vpm.Version;

            //vpm.Dip[17] = 1;
            vpm.Run((int)this.Handle);
            //vpm.Dip[17] = 1;


            Log("SampleRate:" + vpm.SampleRate);

            Log("DMD Width: " + vpm.RawDmdWidth);
            Log("DMD Height: " + vpm.RawDmdHeight);

            //DumpCOMInfo();
        }
예제 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            vpm = new Controller();
            vpm.OnStateChange += Vpm_OnStateChange;

            vpm.GameName = "ft_l5";
            //vpm.GameName = "flight2k";

            //vpm.HandleKeyboard = true;
            vpm.ShowDMDOnly = false;

            /*
            vpm.ShowFrame = false;
            vpm.ShowTitle = false;
            vpm.DoubleSize = false;
            vpm.LockDisplay = true;
            vpm.ShowDMDOnly = true;
            vpm.Hidden = true;
            */

            this.Text = vpm.Version;

            //vpm.Dip[17] = 1;
            vpm.Run((int)this.Handle);
            //vpm.Dip[17] = 1;


            Log("SampleRate:" + vpm.SampleRate);

            Log("DMD Width: " + vpm.RawDmdWidth);
            Log("DMD Height: " + vpm.RawDmdHeight);

            //DumpCOMInfo();

        }
예제 #3
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     frameTimer.Stop();
     vpm.Stop();
     vpm = null;
 }
예제 #4
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     frameTimer.Stop();
     vpm.Stop();
     vpm = null;
 }