Example #1
0
        /// <summary>
        /// コントロールパネルを開く
        /// </summary>
        /// <param name="name"></param>
        internal static void DI_OpenSetting(string name)
        {
            // ジョイパッド一覧を取得
            Device     d       = null;
            DeviceList devList = Manager.GetDevices(DeviceClass.GameControl, EnumDevicesFlags.AttachedOnly);

            foreach (DeviceInstance dev in devList)
            {
                d = new Microsoft.DirectX.DirectInput.Device(dev.InstanceGuid);
                if (d.DeviceInformation.ProductName == name)
                {
                    // コントロールパネルを開く
                    d.RunControlPanel();
                    break;
                }
            }
        }