We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80789c6 commit a23bd5cCopy full SHA for a23bd5c
Source/ORTS.Settings/InputSettings.cs
@@ -67,6 +67,7 @@ public class InputSettings : SettingsBase
67
68
public static readonly UserCommandInput[] DefaultCommands = new UserCommandInput[Enum.GetNames(typeof(UserCommand)).Length];
69
public readonly UserCommandInput[] Commands = new UserCommandInput[Enum.GetNames(typeof(UserCommand)).Length];
70
+ static readonly UserCommand[] UserCommandValues = (UserCommand[])Enum.GetValues(typeof(UserCommand));
71
72
static InputSettings()
73
{
@@ -91,7 +92,7 @@ UserCommand GetCommand(string name)
91
92
93
UserCommand[] GetCommands()
94
- return (UserCommand[])Enum.GetValues(typeof(UserCommand));
95
+ return UserCommandValues;
96
}
97
98
public override object GetDefaultValue(string name)
0 commit comments