/// <summary>
 /// Initializes a new instance of the <see cref="EnumObjectsCallback"/> class.
 /// </summary>
 public EnumObjectsCallback()
 {
     unsafe
     {
         _callback     = new DirectInputEnumObjectsDelegate(DirectInputEnumObjectsImpl);
         NativePointer = Marshal.GetFunctionPointerForDelegate(_callback);
         Objects       = new List <DeviceObjectInstance>();
     }
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EnumObjectsCallback"/> class.
 /// </summary>
 public EnumObjectsCallback()
 {
     unsafe
     {
         _callback = new DirectInputEnumObjectsDelegate(DirectInputEnumObjectsImpl);
         _nativePointer = Marshal.GetFunctionPointerForDelegate(_callback);
         Objects = new List<DeviceObjectInstance>();
     }
 }