Moved current Asus-Implementation (v2-SDK) to a legacy-project

This commit is contained in:
DarthAffe committed 2019-06-16 12:19:45 +02:00
1 parent 4ee6d3c70a
commit b7099aa7e2
26 files changed
+16 -5

No files matched your search

@@ -0,0 +1,56 @@
//using RGB.NET.Core;
//using RGB.NET.Devices.Asus.Native;
//namespace RGB.NET.Devices.Asus
//{
// /// <inheritdoc />
// /// <summary>
// /// Represents a Asus dram.
// /// </summary>
// public class AsusDramRGBDevice : AsusRGBDevice
// {
// #region Properties & Fields
// /// <summary>
// /// Gets information about the <see cref="AsusDramRGBDevice"/>.
// /// </summary>
// public AsusDramRGBDeviceInfo DramDeviceInfo { get; }
// #endregion
// #region Constructors
// /// <inheritdoc />
// /// <summary>
// /// Initializes a new instance of the <see cref="T:RGB.NET.Devices.Asus.AsusDramRGBDevice" /> class.
// /// </summary>
// /// <param name="info">The specific information provided by Asus for the DRAM.</param>
// internal AsusDramRGBDevice(AsusDramRGBDeviceInfo info)
// : base(info)
// {
// this.DramDeviceInfo = info;
// }
// #endregion
// #region Methods
// /// <inheritdoc />
// protected override void InitializeLayout()
// {
// //TODO DarthAffe 21.10.2017: Look for a good default layout
// int ledCount = _AsusSDK.GetGPULedCount(DramDeviceInfo.Handle);
// for (int i = 0; i < ledCount; i++)
// InitializeLed(new AsusLedId(this, AsusLedIds.DramLed1 + i, i), new Rectangle(i * 10, 0, 10, 10));
// //TODO DarthAffe 21.10.2017: We don't know the model, how to save layouts and images?
// ApplyLayoutFromFile(PathHelper.GetAbsolutePath($@"Layouts\Asus\Drams\{DramDeviceInfo.Model.Replace(" ", string.Empty).ToUpper()}.xml"),
// null, PathHelper.GetAbsolutePath(@"Images\Asus\Drams"));
// }
// /// <inheritdoc />
// protected override void ApplyColorData() => _AsusSDK.SetDramColor(DramDeviceInfo.Handle, ColorData);
// #endregion
// }
//}
@@ -0,0 +1,33 @@
using System;
using RGB.NET.Core;
namespace RGB.NET.Devices.Asus
{
/// <inheritdoc />
/// <summary>
/// Represents a generic information for a <see cref="T:RGB.NET.Devices.Asus.AsusDramRGBDevice" />.
/// </summary>
public class AsusDramRGBDeviceInfo : AsusRGBDeviceInfo
{
#region Properties & Fields
/// <inheritdoc />
public override bool SupportsSyncBack => true;
#endregion
#region Constructors
/// <inheritdoc />
/// <summary>
/// Internal constructor of managed <see cref="T:RGB.NET.Devices.Asus.AsusDramRGBDeviceInfo" />.
/// </summary>
/// <param name="deviceType">The type of the <see cref="IRGBDevice"/>.</param>
/// <param name="handle">The handle of the <see cref="IRGBDevice"/>.</param>
internal AsusDramRGBDeviceInfo(RGBDeviceType deviceType, IntPtr handle)
: base(deviceType, handle)
{ }
#endregion
}
}