diff --git a/Enums/CorsairDeviceCaps.cs b/Enums/CorsairDeviceCaps.cs
index 4033771..f8982ae 100644
--- a/Enums/CorsairDeviceCaps.cs
+++ b/Enums/CorsairDeviceCaps.cs
@@ -1,11 +1,14 @@
// ReSharper disable InconsistentNaming
// ReSharper disable UnusedMember.Global
+using System;
+
namespace CUE.NET.Enums
{
///
/// Contains list of device capabilities
///
+ [Flags]
public enum CorsairDeviceCaps
{
///
diff --git a/Wrapper/CorsairDeviceInfo.cs b/Wrapper/CorsairDeviceInfo.cs
index 574175e..09d6634 100644
--- a/Wrapper/CorsairDeviceInfo.cs
+++ b/Wrapper/CorsairDeviceInfo.cs
@@ -37,7 +37,7 @@ namespace CUE.NET.Wrapper
///
/// Mask that describes device capabilities, formed as logical "or" of CorsairDeviceCaps enum values
///
- public int CapsMask { get; private set; }
+ public CorsairDeviceCaps CapsMask { get; private set; }
#endregion
@@ -49,7 +49,7 @@ namespace CUE.NET.Wrapper
this.Model = nativeInfo.model == IntPtr.Zero ? null : Marshal.PtrToStringAuto(nativeInfo.model);
this.PhysicalLayout = nativeInfo.physicalLayout;
this.LogicalLayout = nativeInfo.logicalLayout;
- this.CapsMask = nativeInfo.capsMask;
+ this.CapsMask = (CorsairDeviceCaps)nativeInfo.capsMask;
}
#endregion