Input - Removed unused keyboard keys

simplified a bunch of enum flag code
changed dictionaries into switches
This commit is contained in:
Diogo Trindade committed 2023-04-06 22:49:54 +01:00
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);