/// <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>(); } }
/// <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>(); } }