using System.Collections.Generic; using System.Drawing; using BizHawk.Emulation.Common; namespace BizHawk.Client.EmuHawk { [Schema("GGL")] // ReSharper disable once UnusedMember.Global public class GGLSchema : IVirtualPadSchema { public IEnumerable GetPadSchemas(IEmulator core) { yield return StandardController(1); yield return StandardController(2); } private static PadSchema StandardController(int controller) { return new PadSchema { Size = new Size(174, 90), Buttons = new[] { ButtonSchema.Up(14, 12, controller), ButtonSchema.Down(14, 56, controller), ButtonSchema.Left(2, 34, controller), ButtonSchema.Right(24, 34, controller), new ButtonSchema(134, 12, controller, "Start") { DisplayName = "S" }, new ButtonSchema(122, 34, controller, "B1") { DisplayName = "1" }, new ButtonSchema(146, 34, controller, "B2") { DisplayName = "2" } } }; } } }