mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Core - Provide BitmapBrush with the currently active surface
UI - Small style change to the confirmation dialog Surface - Add API to get an ArtemisLed by its corresponding RGB.NET LED Devices - Add API to get an ArtemisLed by its corresponding RGB.NET LED Devices - Add API to get an ArtemisLed by its corresponding RGB.NET LedId
This commit is contained in:
1 parent
5b0e1c91dd
commit
f05740a5f1
10 files changed
+182
-38
No files matched your search
@@ -192,11 +192,11 @@ namespace Artemis.Core.Services
|
||||
if (UpdatePressedKeys(e.Device, e.Key, e.IsDown))
|
||||
return;
|
||||
|
||||
// Get the LED - TODO: leverage a lookup
|
||||
// Get the LED
|
||||
bool foundLedId = InputKeyUtilities.KeyboardKeyLedIdMap.TryGetValue(e.Key, out LedId ledId);
|
||||
ArtemisLed? led = null;
|
||||
if (foundLedId && e.Device != null)
|
||||
led = e.Device.Leds.FirstOrDefault(l => l.RgbLed.Id == ledId);
|
||||
led = e.Device.GetLed(ledId);
|
||||
|
||||
// Create the UpDown event args because it can be used for every event
|
||||
ArtemisKeyboardKeyUpDownEventArgs eventArgs = new ArtemisKeyboardKeyUpDownEventArgs(e.Device, led, e.Key, keyboardModifierKey, e.IsDown);
|
||||
|
||||
Reference in new issue
Block a user