コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EnumDevicesCallback"/> class.
 /// </summary>
 public EnumDevicesCallback()
 {
     unsafe
     {
         _callback       = new DirectInputEnumDevicesDelegate(DirectInputEnumDevicesImpl);
         _nativePointer  = Marshal.GetFunctionPointerForDelegate(_callback);
         DeviceInstances = new List <DeviceInstance>();
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EnumDevicesCallback"/> class.
 /// </summary>
 public EnumDevicesCallback()
 {
     unsafe
     {
         _callback = new DirectInputEnumDevicesDelegate(DirectInputEnumDevicesImpl);
         _nativePointer = Marshal.GetFunctionPointerForDelegate(_callback);
         DeviceInstances = new List<DeviceInstance>();
     }
 }