95 lines
2.3 KiB
C#
95 lines
2.3 KiB
C#
![]() |
using System.Collections.Generic;
|
|||
|
using System.Drawing;
|
|||
|
|
|||
|
namespace BizHawk.Client.EmuHawk
|
|||
|
{
|
|||
|
[SchemaAttributes("LYNX")]
|
|||
|
public class LYNXSchema : IVirtualPadSchema
|
|||
|
{
|
|||
|
public IEnumerable<PadSchema> GetPadSchemas()
|
|||
|
{
|
|||
|
yield return StandardController();
|
|||
|
//yield return ConsoleButtons();
|
|||
|
}
|
|||
|
|
|||
|
public static PadSchema StandardController()
|
|||
|
{
|
|||
|
return new PadSchema
|
|||
|
{
|
|||
|
IsConsole = false,
|
|||
|
DefaultSize = new Size(194, 90),
|
|||
|
Buttons = new[]
|
|||
|
{
|
|||
|
new PadSchema.ButtonScema
|
|||
|
{
|
|||
|
Name = "Up",
|
|||
|
DisplayName = "",
|
|||
|
Icon = Properties.Resources.BlueUp,
|
|||
|
Location = new Point(14, 12),
|
|||
|
Type = PadSchema.PadInputType.Boolean
|
|||
|
},
|
|||
|
new PadSchema.ButtonScema
|
|||
|
{
|
|||
|
Name = "Down",
|
|||
|
DisplayName = "",
|
|||
|
Icon = Properties.Resources.BlueDown,
|
|||
|
Location = new Point(14, 56),
|
|||
|
Type = PadSchema.PadInputType.Boolean
|
|||
|
},
|
|||
|
new PadSchema.ButtonScema
|
|||
|
{
|
|||
|
Name = "Left",
|
|||
|
DisplayName = "",
|
|||
|
Icon = Properties.Resources.Back,
|
|||
|
Location = new Point(2, 34),
|
|||
|
Type = PadSchema.PadInputType.Boolean
|
|||
|
},
|
|||
|
new PadSchema.ButtonScema
|
|||
|
{
|
|||
|
Name = "Right",
|
|||
|
DisplayName = "",
|
|||
|
Icon = Properties.Resources.Forward,
|
|||
|
Location = new Point(24, 34),
|
|||
|
Type = PadSchema.PadInputType.Boolean
|
|||
|
},
|
|||
|
new PadSchema.ButtonScema
|
|||
|
{
|
|||
|
Name = "B",
|
|||
|
DisplayName = "B",
|
|||
|
Location = new Point(130, 62),
|
|||
|
Type = PadSchema.PadInputType.Boolean
|
|||
|
},
|
|||
|
new PadSchema.ButtonScema
|
|||
|
{
|
|||
|
Name = "A",
|
|||
|
DisplayName = "A",
|
|||
|
Location = new Point(154, 62),
|
|||
|
Type = PadSchema.PadInputType.Boolean
|
|||
|
},
|
|||
|
new PadSchema.ButtonScema
|
|||
|
{
|
|||
|
Name = "Option 1",
|
|||
|
DisplayName = "1",
|
|||
|
Location = new Point(100, 12),
|
|||
|
Type = PadSchema.PadInputType.Boolean
|
|||
|
},
|
|||
|
new PadSchema.ButtonScema
|
|||
|
{
|
|||
|
Name = "Option 2",
|
|||
|
DisplayName = "2",
|
|||
|
Location = new Point(100, 62),
|
|||
|
Type = PadSchema.PadInputType.Boolean
|
|||
|
},
|
|||
|
new PadSchema.ButtonScema
|
|||
|
{
|
|||
|
Name = "Pause",
|
|||
|
DisplayName = "Pause",
|
|||
|
Location = new Point(100, 37),
|
|||
|
Type = PadSchema.PadInputType.Boolean
|
|||
|
}
|
|||
|
}
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
}
|