Don't unnecessarily create and return a Dictionary from GetAxisValues
This commit is contained in:
parent
032d1b85d6
commit
cf45d41c85
|
@ -171,13 +171,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
}
|
||||
|
||||
public IDictionary<string, int> GetAxisValues()
|
||||
public KeyValuePair<string, int>[] GetAxisValues()
|
||||
{
|
||||
lock (_axisValues)
|
||||
{
|
||||
return _axisValues.ToDictionary();
|
||||
return _axisValues.ToArray();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue