From 77a810600b115d806c726c9f6e99762a21cf6489 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Mon, 15 Jun 2020 13:09:58 +1000 Subject: [PATCH] Inline the thing I deleted into somewhere it shouldn't be used, again --- .../tools/VirtualPads/schema/N64Schema.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/N64Schema.cs b/src/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/N64Schema.cs index 67f69bed3a..80a227ef21 100644 --- a/src/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/N64Schema.cs +++ b/src/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/N64Schema.cs @@ -4,6 +4,8 @@ using System.Drawing; using BizHawk.Emulation.Common; using BizHawk.Emulation.Cores.Nintendo.N64; +using static BizHawk.Emulation.Common.ControllerDefinition; + namespace BizHawk.Client.EmuHawk { [Schema("N64")] @@ -24,7 +26,6 @@ namespace BizHawk.Client.EmuHawk private static PadSchema StandardController(int controller) { - var controllerDefRanges = N64Input.N64ControllerDefinition.AxisRanges; return new PadSchema { Size = new Size(275, 316), @@ -58,8 +59,8 @@ namespace BizHawk.Client.EmuHawk }, new AnalogSchema(6, 14, $"P{controller} X Axis") { - AxisRange = controllerDefRanges[0], - SecondaryAxisRange = controllerDefRanges[1] + AxisRange = new AxisRange(-128, 0, 127), + SecondaryAxisRange = new AxisRange(-128, 0, 127) } } };