示例#1
0
        private void checkvJoyProperties()
        {
            vJoy   joystick = new vJoy();
            string installedVersion;

            // Get the driver attributes (Vendor ID, Product ID, Version Number)
            if (!joystick.isEnabled())
            {
                MessageBox.Show("vJoy driver not enabled: Failed Getting vJoy attributes.\n");
            }
            else
            {
                installedVersion = joystick.getSerialNumberString();
                if (installedVersion != joystick.getCompiledVersionNumber())
                {
                    MessageBox.Show("vJoy version :" + installedVersion + "does not match required version of 2.1.5");
                }
            }
            //Console.WriteLine("Vendor: {0}\nProduct :{1}\nVersion Number:{2}\n", joystick.GetvJoyManufacturerString(), joystick.GetvJoyProductString(), joystick.GetvJoySerialNumberString());


            int a = 1;
        }