Intellivision - movie mnemonics and virtual pads
|
@ -282,6 +282,27 @@ namespace BizHawk.Client.Common
|
|||
{ "L", 'L' },
|
||||
{ "R", 'R' }
|
||||
}
|
||||
},
|
||||
{
|
||||
"INTV",
|
||||
new Dictionary<string, char>
|
||||
{
|
||||
{ "Clear", 'C' },
|
||||
{ "Enter", 'E' },
|
||||
{ "Top", 'T' },
|
||||
{ "NNE", 'n' },
|
||||
{ "NE", '/' },
|
||||
{ "ENE", 'e' },
|
||||
{ "ESE", 'e' },
|
||||
{ "SE", '\\' },
|
||||
{ "SSE", 's' },
|
||||
{ "SSW", 's' },
|
||||
{ "SW", '/' },
|
||||
{ "WSW", 'w' },
|
||||
{ "WNW", 'w' },
|
||||
{ "NW", '\\' },
|
||||
{ "NNW", 'n' }
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1190,6 +1190,7 @@
|
|||
<Compile Include="tools\VirtualPads\schema\GBASchema.cs" />
|
||||
<Compile Include="tools\VirtualPads\schema\GBSchema.cs" />
|
||||
<Compile Include="tools\VirtualPads\schema\GenSchema.cs" />
|
||||
<Compile Include="tools\VirtualPads\schema\IntvSchema.cs" />
|
||||
<Compile Include="tools\VirtualPads\schema\LynxSchema.cs" />
|
||||
<Compile Include="tools\VirtualPads\schema\PSXSchema.cs" />
|
||||
<Compile Include="tools\VirtualPads\schema\SatSchema.cs" />
|
||||
|
@ -1776,6 +1777,16 @@
|
|||
<None Include="config\ControllerImages\GENController.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="images\WSW.png" />
|
||||
<None Include="images\WNW.png" />
|
||||
<None Include="images\SW.png" />
|
||||
<None Include="images\SSW.png" />
|
||||
<None Include="images\SSE.png" />
|
||||
<None Include="images\SE.png" />
|
||||
<None Include="images\NW.png" />
|
||||
<None Include="images\NNW.png" />
|
||||
<None Include="images\NNE.png" />
|
||||
<None Include="images\NE.png" />
|
||||
<None Include="images\Shark.ico" />
|
||||
<None Include="images\Shark.png" />
|
||||
<None Include="images\ScrollTo.png" />
|
||||
|
@ -2090,6 +2101,8 @@
|
|||
<None Include="images\cdlogger.ico" />
|
||||
<None Include="images\AddEdit.png" />
|
||||
<None Include="images\JumpTo.png" />
|
||||
<None Include="images\ENE.png" />
|
||||
<None Include="images\ESE.png" />
|
||||
<Content Include="images\logo.ico" />
|
||||
<None Include="images\Paste.png" />
|
||||
<None Include="images\reboot.png" />
|
||||
|
|
|
@ -1524,4 +1524,40 @@
|
|||
<data name="whiteTriUp" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\whiteTriUp.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ENE" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\ENE.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ESE" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\ESE.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="NE" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\NE.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="NNE" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\NNE.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="NNW" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\NNW.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="NW" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\NW.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="SE" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\SE.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="SSE" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\SSE.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="SSW" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\SSW.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="SW" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\SW.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="WNW" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\WNW.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="WSW" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\images\WSW.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
After Width: | Height: | Size: 567 B |
After Width: | Height: | Size: 628 B |
After Width: | Height: | Size: 586 B |
After Width: | Height: | Size: 549 B |
After Width: | Height: | Size: 827 B |
After Width: | Height: | Size: 546 B |
After Width: | Height: | Size: 623 B |
After Width: | Height: | Size: 663 B |
After Width: | Height: | Size: 723 B |
After Width: | Height: | Size: 642 B |
After Width: | Height: | Size: 785 B |
After Width: | Height: | Size: 771 B |
|
@ -0,0 +1,424 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
using BizHawk.Common.ReflectionExtensions;
|
||||
using BizHawk.Emulation.Common;
|
||||
using BizHawk.Emulation.Cores.Intellivision;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
[SchemaAttributes("INTV")]
|
||||
public class IntvSchema : IVirtualPadSchema
|
||||
{
|
||||
private string UnpluggedControllerName { get { return typeof(UnpluggedController).DisplayName(); } }
|
||||
private string StandardControllerName { get { return typeof(StandardController).DisplayName(); } }
|
||||
private string AnalogControllerName { get { return typeof(FakeAnalogController).DisplayName(); } }
|
||||
|
||||
public IEnumerable<PadSchema> GetPadSchemas(IEmulator core)
|
||||
{
|
||||
var intv = core as Intellivision;
|
||||
var port1 = intv.SyncSettings.Port1;
|
||||
var port2 = intv.SyncSettings.Port2;
|
||||
|
||||
if (port1 == StandardControllerName)
|
||||
{
|
||||
yield return StandardController(1);
|
||||
}
|
||||
else if (port1 == AnalogControllerName)
|
||||
{
|
||||
yield return AnalogController(1);
|
||||
}
|
||||
|
||||
if (port2 == StandardControllerName)
|
||||
{
|
||||
yield return StandardController(2);
|
||||
}
|
||||
else if (port2 == AnalogControllerName)
|
||||
{
|
||||
yield return AnalogController(2);
|
||||
}
|
||||
}
|
||||
|
||||
private static PadSchema StandardController(int controller)
|
||||
{
|
||||
return new PadSchema
|
||||
{
|
||||
DisplayName = "Player " + controller,
|
||||
IsConsole = false,
|
||||
DefaultSize = new Size(148, 332),
|
||||
Buttons = new[]
|
||||
{
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 1",
|
||||
DisplayName = "1",
|
||||
Location = new Point(25, 15),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 2",
|
||||
DisplayName = "2",
|
||||
Location = new Point(51, 15),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 3",
|
||||
DisplayName = "3",
|
||||
Location = new Point(77, 15),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 4",
|
||||
DisplayName = "4",
|
||||
Location = new Point(25, 41),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 5",
|
||||
DisplayName = "5",
|
||||
Location = new Point(51, 41),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 6",
|
||||
DisplayName = "6",
|
||||
Location = new Point(77, 41),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 7",
|
||||
DisplayName = "7",
|
||||
Location = new Point(25, 67),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 8",
|
||||
DisplayName = "8",
|
||||
Location = new Point(51, 67),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 9",
|
||||
DisplayName = "9",
|
||||
Location = new Point(77, 67),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Clear",
|
||||
DisplayName = "C",
|
||||
Location = new Point(25, 93),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 0",
|
||||
DisplayName = "0",
|
||||
Location = new Point(51, 93),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Enter",
|
||||
DisplayName = "E",
|
||||
Location = new Point(77, 93),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Top",
|
||||
DisplayName = "T",
|
||||
Location = new Point(2, 41),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Top",
|
||||
DisplayName = "T",
|
||||
Location = new Point(100, 41),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " L",
|
||||
DisplayName = "L",
|
||||
Location = new Point(2, 67),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " R",
|
||||
DisplayName = "R",
|
||||
Location = new Point(100, 67),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
|
||||
/************** Directional Pad *******************/
|
||||
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " N",
|
||||
Icon = Properties.Resources.BlueUp,
|
||||
Location = new Point(51, 124),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " NNE",
|
||||
Icon = Properties.Resources.NNE,
|
||||
Location = new Point(63, 145),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " NNW",
|
||||
Icon = Properties.Resources.NNW,
|
||||
Location = new Point(39, 145),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " NE",
|
||||
Icon = Properties.Resources.NE,
|
||||
Location = new Point(75, 166),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " NW",
|
||||
Icon = Properties.Resources.NW,
|
||||
Location = new Point(27, 166),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " ENE",
|
||||
Icon = Properties.Resources.ENE,
|
||||
Location = new Point(87, 187),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " WNW",
|
||||
Icon = Properties.Resources.WNW,
|
||||
Location = new Point(15, 187),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " E",
|
||||
Icon = Properties.Resources.Forward,
|
||||
Location = new Point(99, 208),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " W",
|
||||
Icon = Properties.Resources.Back,
|
||||
Location = new Point(3, 208),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " ESE",
|
||||
Icon = Properties.Resources.ESE,
|
||||
Location = new Point(87, 229),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " WSW",
|
||||
Icon = Properties.Resources.WSW,
|
||||
Location = new Point(15, 229),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " SE",
|
||||
Icon = Properties.Resources.SE,
|
||||
Location = new Point(75, 250),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " SW",
|
||||
Icon = Properties.Resources.SW,
|
||||
Location = new Point(27, 250),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " SSE",
|
||||
Icon = Properties.Resources.SSE,
|
||||
Location = new Point(63, 271),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " SSW",
|
||||
Icon = Properties.Resources.SSW,
|
||||
Location = new Point(39, 271),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " S",
|
||||
Icon = Properties.Resources.BlueDown,
|
||||
Location = new Point(51, 292),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private static PadSchema AnalogController(int controller)
|
||||
{
|
||||
return new PadSchema
|
||||
{
|
||||
DisplayName = "Player " + controller,
|
||||
IsConsole = false,
|
||||
DefaultSize = new Size(280, 332),
|
||||
Buttons = new[]
|
||||
{
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 1",
|
||||
DisplayName = "1",
|
||||
Location = new Point(91, 15),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 2",
|
||||
DisplayName = "2",
|
||||
Location = new Point(117, 15),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 3",
|
||||
DisplayName = "3",
|
||||
Location = new Point(143, 15),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 4",
|
||||
DisplayName = "4",
|
||||
Location = new Point(91, 41),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 5",
|
||||
DisplayName = "5",
|
||||
Location = new Point(117, 41),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 6",
|
||||
DisplayName = "6",
|
||||
Location = new Point(143, 41),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 7",
|
||||
DisplayName = "7",
|
||||
Location = new Point(91, 67),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 8",
|
||||
DisplayName = "8",
|
||||
Location = new Point(117, 67),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 9",
|
||||
DisplayName = "9",
|
||||
Location = new Point(143, 67),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Clear",
|
||||
DisplayName = "C",
|
||||
Location = new Point(91, 93),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Key 0",
|
||||
DisplayName = "0",
|
||||
Location = new Point(117, 93),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Enter",
|
||||
DisplayName = "E",
|
||||
Location = new Point(143, 93),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Top",
|
||||
DisplayName = "T",
|
||||
Location = new Point(68, 41),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Top",
|
||||
DisplayName = "T",
|
||||
Location = new Point(166, 41),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " L",
|
||||
DisplayName = "L",
|
||||
Location = new Point(68, 67),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " R",
|
||||
DisplayName = "R",
|
||||
Location = new Point(166, 67),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Disc X",
|
||||
MinValue = -127,
|
||||
MidValue = 0,
|
||||
MaxValue = 127,
|
||||
MinValueSec = 127,
|
||||
MidValueSec = 0,
|
||||
MaxValueSec = -127,
|
||||
DisplayName = "",
|
||||
Location = new Point(1, 121),
|
||||
Type = PadSchema.PadInputType.AnalogStick
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|