We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f474d48 commit 81ea0ecCopy full SHA for 81ea0ec
2 files changed
EliteAPI/bindings/Binding.cs
@@ -8,7 +8,7 @@ public readonly struct Binding
8
9
public string Key { get; init; }
10
11
- public string KeyCode => $"{string.Join("", Modifiers?.Select(m => m.KeyCode) ?? Enumerable.Empty<string>())}{BindingsUtils.GetKeyCode(Key)}";
+ public string KeyCode => $"{string.Join("", Modifiers?.Select(m => m.KeyCode) ?? [])}{BindingsUtils.GetKeyCode(Key)}";
12
13
public Binding[]? Modifiers { get; init; }
14
EliteAPI/bindings/Control.cs
@@ -13,6 +13,8 @@ public readonly struct Control
public bool? IsInverted { get; init; }
15
public float? Deadzone { get; init; }
16
+
17
+ public bool IsValid => !string.IsNullOrEmpty(KeyCode);
18
19
public string KeyCode { get {
20
if (Primary is { Device: "Keyboard" })
0 commit comments