Virtualpads - coleco
This commit is contained in:
parent
58d96a6806
commit
0f64fa9a8a
|
@ -906,6 +906,7 @@
|
|||
</Compile>
|
||||
<Compile Include="tools\VirtualPads\schema\A26Schema.cs" />
|
||||
<Compile Include="tools\VirtualPads\schema\A78Schema.cs" />
|
||||
<Compile Include="tools\VirtualPads\schema\ColecoSchema.cs" />
|
||||
<Compile Include="tools\VirtualPads\schema\GBASchema.cs" />
|
||||
<Compile Include="tools\VirtualPads\schema\GBSchema.cs" />
|
||||
<Compile Include="tools\VirtualPads\schema\GenSchema.cs" />
|
||||
|
|
|
@ -0,0 +1,164 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
[SchemaAttributes("Coleco")]
|
||||
public class ColecoSchema : IVirtualPadSchema
|
||||
{
|
||||
public IEnumerable<PadSchema> GetPadSchemas()
|
||||
{
|
||||
yield return StandardController(1);
|
||||
yield return StandardController(2);
|
||||
}
|
||||
|
||||
public static PadSchema StandardController(int controller)
|
||||
{
|
||||
return new PadSchema
|
||||
{
|
||||
IsConsole = false,
|
||||
DefaultSize = new Size(128, 200),
|
||||
Buttons = new[]
|
||||
{
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Up",
|
||||
DisplayName = "",
|
||||
Icon = Properties.Resources.BlueUp,
|
||||
Location = new Point(50, 11),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Down",
|
||||
DisplayName = "",
|
||||
Icon = Properties.Resources.BlueDown,
|
||||
Location = new Point(50, 32),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Left",
|
||||
DisplayName = "",
|
||||
Icon = Properties.Resources.Back,
|
||||
Location = new Point(29, 22),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Right",
|
||||
DisplayName = "",
|
||||
Icon = Properties.Resources.Forward,
|
||||
Location = new Point(71, 22),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " L",
|
||||
DisplayName = "L",
|
||||
Location = new Point(3, 42),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " R",
|
||||
DisplayName = "R",
|
||||
Location = new Point(100, 42),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key1",
|
||||
DisplayName = "1",
|
||||
Location = new Point(27, 85),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key2",
|
||||
DisplayName = "2",
|
||||
Location = new Point(50, 85),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key3",
|
||||
DisplayName = "3",
|
||||
Location = new Point(73, 85),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key4",
|
||||
DisplayName = "4",
|
||||
Location = new Point(27, 108),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key5",
|
||||
DisplayName = "5",
|
||||
Location = new Point(50, 108),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key6",
|
||||
DisplayName = "6",
|
||||
Location = new Point(73, 108),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key7",
|
||||
DisplayName = "7",
|
||||
Location = new Point(27, 131),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key8",
|
||||
DisplayName = "8",
|
||||
Location = new Point(50, 131),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key9",
|
||||
DisplayName = "9",
|
||||
Location = new Point(73, 131),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Star",
|
||||
DisplayName = "*",
|
||||
Location = new Point(27, 154),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key0",
|
||||
DisplayName = "0",
|
||||
Location = new Point(50, 154),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Pound",
|
||||
DisplayName = "#",
|
||||
Location = new Point(73, 154),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue