Implement Novation device detection (at start only Launchpad S supported) and implement updating of leds

This commit is contained in:
Snowsun committed 2017-08-16 18:05:45 +02:00
1 parent f654f825f7
commit 8ecaff8722
10 files changed
+119 -14

No files matched your search

@@ -1,5 +1,6 @@
using System;
using RGB.NET.Core;
using Sanford.Multimedia.Midi;
namespace RGB.NET.Devices.Novation
{
@@ -14,8 +14,9 @@ namespace RGB.NET.Devices.Novation
/// Internal constructor of managed <see cref="NovationLaunchpadRGBDeviceInfo"/>.
/// </summary>
/// <param name="model">The represented device model.</param>
internal NovationLaunchpadRGBDeviceInfo(string model)
: base(RGBDeviceType.LedMatrix, model)
/// <param name="deviceId"></param>
internal NovationLaunchpadRGBDeviceInfo(string model, int deviceId)
: base(RGBDeviceType.LedMatrix, model, deviceId)
{
Image = new Uri(PathHelper.GetAbsolutePath($@"Images\Novation\Launchpads\{Model.Replace(" ", string.Empty).ToUpper()}.png"), UriKind.Absolute);
}