mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-31 09:44:21 +00:00
Compare commits
4 Commits
79f71bab29
...
af43c0ae87
| Author | SHA1 | Date | |
|---|---|---|---|
| af43c0ae87 | |||
| 7898c50eed | |||
| 505e7481f7 | |||
| 4f478879c2 |
@ -34,5 +34,10 @@ public enum NovationDevices
|
|||||||
[DeviceId("Launchpad Open")]
|
[DeviceId("Launchpad Open")]
|
||||||
[ColorCapability(NovationColorCapabilities.RGB)]
|
[ColorCapability(NovationColorCapabilities.RGB)]
|
||||||
[LedIdMapping(LedIdMappings.Pro)]
|
[LedIdMapping(LedIdMappings.Pro)]
|
||||||
LaunchpadCustomFirmware
|
LaunchpadCustomFirmware,
|
||||||
|
|
||||||
|
[DeviceId("LPMiniMK3")]
|
||||||
|
[ColorCapability(NovationColorCapabilities.RGB)]
|
||||||
|
[LedIdMapping(LedIdMappings.Current)]
|
||||||
|
LaunchpadMiniMK3,
|
||||||
}
|
}
|
||||||
@ -65,11 +65,10 @@ public sealed class NovationDeviceProvider : AbstractRGBDeviceProvider
|
|||||||
MidiOutCaps outCaps = OutputDeviceBase.GetDeviceCapabilities(index);
|
MidiOutCaps outCaps = OutputDeviceBase.GetDeviceCapabilities(index);
|
||||||
if (outCaps.name == null) continue;
|
if (outCaps.name == null) continue;
|
||||||
|
|
||||||
string deviceName = outCaps.name.ToUpperInvariant();
|
|
||||||
NovationDevices? deviceId = (NovationDevices?)Enum.GetValues(typeof(NovationDevices))
|
NovationDevices? deviceId = (NovationDevices?)Enum.GetValues(typeof(NovationDevices))
|
||||||
.Cast<Enum>()
|
.Cast<Enum>()
|
||||||
.Where(x => x.GetDeviceId() != null)
|
.Where(x => x.GetDeviceId() != null)
|
||||||
.FirstOrDefault(x => deviceName.Contains(x.GetDeviceId()!.ToUpperInvariant()));
|
.FirstOrDefault(x => outCaps.name.Contains(x.GetDeviceId()!, StringComparison.InvariantCultureIgnoreCase));
|
||||||
|
|
||||||
if (deviceId == null) continue;
|
if (deviceId == null) continue;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user