mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 04:56:44 +00:00
Fixed wrong type for device-capabilities in the device-info
This commit is contained in:
1 parent
f07595b50c
commit
b47abedae2
2 files changed
+5
-2
No files matched your search
@@ -1,11 +1,14 @@
|
|||||||
// ReSharper disable InconsistentNaming
|
// ReSharper disable InconsistentNaming
|
||||||
// ReSharper disable UnusedMember.Global
|
// ReSharper disable UnusedMember.Global
|
||||||
|
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace CUE.NET.Enums
|
namespace CUE.NET.Enums
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains list of device capabilities
|
/// Contains list of device capabilities
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Flags]
|
||||||
public enum CorsairDeviceCaps
|
public enum CorsairDeviceCaps
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ namespace CUE.NET.Wrapper
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Mask that describes device capabilities, formed as logical "or" of CorsairDeviceCaps enum values
|
/// Mask that describes device capabilities, formed as logical "or" of CorsairDeviceCaps enum values
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int CapsMask { get; private set; }
|
public CorsairDeviceCaps CapsMask { get; private set; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ namespace CUE.NET.Wrapper
|
|||||||
this.Model = nativeInfo.model == IntPtr.Zero ? null : Marshal.PtrToStringAuto(nativeInfo.model);
|
this.Model = nativeInfo.model == IntPtr.Zero ? null : Marshal.PtrToStringAuto(nativeInfo.model);
|
||||||
this.PhysicalLayout = nativeInfo.physicalLayout;
|
this.PhysicalLayout = nativeInfo.physicalLayout;
|
||||||
this.LogicalLayout = nativeInfo.logicalLayout;
|
this.LogicalLayout = nativeInfo.logicalLayout;
|
||||||
this.CapsMask = nativeInfo.capsMask;
|
this.CapsMask = (CorsairDeviceCaps)nativeInfo.capsMask;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Reference in new issue
Block a user