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