mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Input - Removed unused keyboard keys
simplified a bunch of enum flag code changed dictionaries into switches
This commit is contained in:
1 parent
02ecbfa708
commit
5e34a8112b
7 files changed
+540
-794
No files matched your search
@@ -68,7 +68,7 @@ public class InputMappingsTabViewModel : ActivatableViewModelBase
|
||||
return;
|
||||
|
||||
// Locate the original LED the same way the InputService did it, but supply false to Device.GetLed
|
||||
bool foundLedId = InputKeyUtilities.KeyboardKeyLedIdMap.TryGetValue(e.Key, out LedId ledId);
|
||||
bool foundLedId = InputKeyUtilities.TryGetLedIdFromKeyboardKey(e.Key, out LedId ledId);
|
||||
if (!foundLedId)
|
||||
return;
|
||||
ArtemisLed? artemisLed = Device.GetLed(ledId, false);
|
||||
|
||||
Reference in new issue
Block a user