From 0c5fda5cb3d2f38a4f21abec39f82f7f0fe44ad1 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 29 Jun 2014 13:31:56 +0000 Subject: [PATCH] Virtualpads - SMS and GG console buttons --- .../tools/VirtualPads/schema/SmsSchema.cs | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/SmsSchema.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/SmsSchema.cs index 39529abde2..5b6064b0bc 100644 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/SmsSchema.cs +++ b/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/SmsSchema.cs @@ -14,11 +14,13 @@ namespace BizHawk.Client.EmuHawk if ((Global.Emulator as SMS).IsGameGear) { yield return GGController(1); + yield return GGConsoleButtons(); } else { yield return StandardController(1); yield return StandardController(2); + yield return SmsConsoleButtons(); } } @@ -136,5 +138,52 @@ namespace BizHawk.Client.EmuHawk } }; } + + private static PadSchema SmsConsoleButtons() + { + return new PadSchema + { + DisplayName = "Console", + IsConsole = true, + DefaultSize = new Size(150, 50), + Buttons = new[] + { + new PadSchema.ButtonScema + { + Name = "Reset", + DisplayName = "Reset", + Location = new Point(10, 15), + Type = PadSchema.PadInputType.Boolean + }, + new PadSchema.ButtonScema + { + Name = "Pause", + DisplayName = "Pause", + Location = new Point(58, 15), + Type = PadSchema.PadInputType.Boolean + } + } + }; + } + + private static PadSchema GGConsoleButtons() + { + return new PadSchema + { + DisplayName = "Console", + IsConsole = true, + DefaultSize = new Size(150, 50), + Buttons = new[] + { + new PadSchema.ButtonScema + { + Name = "Reset", + DisplayName = "Reset", + Location = new Point(10, 15), + Type = PadSchema.PadInputType.Boolean + } + } + }; + } } }