fix single usage of GetValueOrDefault(IDictionary)
This commit is contained in:
parent
f12f90366b
commit
5d6b35e2c9
|
@ -88,7 +88,7 @@ namespace BizHawk.Emulation.Common
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IDictionary<string, string> CategoryLabels { get; private set; } = new Dictionary<string, string>();
|
public IDictionary<string, string> CategoryLabels { get; private set; } = new Dictionary<string, string>();
|
||||||
|
|
||||||
public void ApplyAxisConstraints(string constraintClass, IDictionary<string, int> axes)
|
public void ApplyAxisConstraints(string constraintClass, Dictionary<string, int> axes)
|
||||||
{
|
{
|
||||||
if (!Axes.HasContraints) return;
|
if (!Axes.HasContraints) return;
|
||||||
foreach (var (k, v) in Axes)
|
foreach (var (k, v) in Axes)
|
||||||
|
@ -101,8 +101,8 @@ namespace BizHawk.Emulation.Common
|
||||||
var xAxis = k;
|
var xAxis = k;
|
||||||
var yAxis = circular.PairedAxis;
|
var yAxis = circular.PairedAxis;
|
||||||
(axes[xAxis], axes[yAxis]) = circular.ApplyTo(
|
(axes[xAxis], axes[yAxis]) = circular.ApplyTo(
|
||||||
CollectionExtensions.GetValueOrDefault(axes, xAxis),
|
axes.GetValueOrDefault(xAxis),
|
||||||
CollectionExtensions.GetValueOrDefault(axes, yAxis));
|
axes.GetValueOrDefault(yAxis));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue