From 7a0295e48fe64e39e462837de7d0d55b2feced89 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Fri, 21 Jul 2017 19:28:44 -0400 Subject: [PATCH] Update A7800 Hawk Schema --- .../VirtualPads/schema/A7800HawkSchema.cs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/A7800HawkSchema.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/A7800HawkSchema.cs index 6e2545f634..299262e983 100644 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/A7800HawkSchema.cs +++ b/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/A7800HawkSchema.cs @@ -12,12 +12,13 @@ namespace BizHawk.Client.EmuHawk { private string UnpluggedControllerName => typeof(UnpluggedController).DisplayName(); private string StandardControllerName => typeof(StandardController).DisplayName(); + private string ProLineControllerName => typeof(ProLineController).DisplayName(); public IEnumerable GetPadSchemas(IEmulator core) { - var intvSyncSettings = ((A7800Hawk)core).GetSyncSettings().Clone(); - var port1 = intvSyncSettings.Port1; - var port2 = intvSyncSettings.Port2; + var A78SyncSettings = ((A7800Hawk)core).GetSyncSettings().Clone(); + var port1 = A78SyncSettings.Port1; + var port2 = A78SyncSettings.Port2; if (port1 == StandardControllerName) { @@ -28,7 +29,17 @@ namespace BizHawk.Client.EmuHawk { yield return JoystickController(2); } - + + if (port1 == ProLineControllerName) + { + yield return ProLineController(1); + } + + if (port2 == ProLineControllerName) + { + yield return ProLineController(2); + } + } private static PadSchema ProLineController(int controller)