1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 10:08:31 +00:00

Encapsulation

This commit is contained in:
SpoinkyNL 2020-02-25 22:31:14 +01:00
parent cabb9825be
commit 2f3bf99acb
3 changed files with 9 additions and 10 deletions

View File

@ -36,7 +36,7 @@ namespace RGB.NET.Devices.Wooting.Generic
_WootingSDK.ArrayUpdateKeyboard(); _WootingSDK.ArrayUpdateKeyboard();
} }
#endregion #endregion
} }
} }

View File

@ -4,18 +4,18 @@ using RGB.NET.Devices.Wooting.Enum;
namespace RGB.NET.Devices.Wooting.Native namespace RGB.NET.Devices.Wooting.Native
{ {
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct _WootingDeviceInfo internal struct _WootingDeviceInfo
{ {
public bool Connected { get; private set; } internal bool Connected { get; private set; }
public string Model { get; private set; } internal string Model { get; private set; }
public byte MaxRows { get; private set; } internal byte MaxRows { get; private set; }
public byte MaxColumns { get; private set; } internal byte MaxColumns { get; private set; }
public byte KeycodeLimit { get; private set; } internal byte KeycodeLimit { get; private set; }
public WootingDeviceType DeviceType { get; private set; } internal WootingDeviceType DeviceType { get; private set; }
} }
} }

View File

@ -6,13 +6,12 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Text;
using RGB.NET.Core; using RGB.NET.Core;
namespace RGB.NET.Devices.Wooting.Native namespace RGB.NET.Devices.Wooting.Native
{ {
// ReSharper disable once InconsistentNaming // ReSharper disable once InconsistentNaming
public class _WootingSDK internal static class _WootingSDK
{ {
#region Library management #region Library management