2014-06-26 20:59:00 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
|
2016-12-06 01:33:21 +00:00
|
|
|
|
using BizHawk.Emulation.Common;
|
2014-06-26 21:09:14 +00:00
|
|
|
|
using BizHawk.Emulation.Cores.Consoles.Sega.gpgx;
|
2017-07-13 17:02:08 +00:00
|
|
|
|
using BizHawk.Emulation.Cores.Consoles.Sega.PicoDrive;
|
2014-06-26 20:59:00 +00:00
|
|
|
|
|
|
|
|
|
namespace BizHawk.Client.EmuHawk
|
|
|
|
|
{
|
2017-07-12 19:40:10 +00:00
|
|
|
|
[Schema("GEN")]
|
2014-06-26 20:59:00 +00:00
|
|
|
|
public class GenSchema : IVirtualPadSchema
|
|
|
|
|
{
|
2016-12-06 01:33:21 +00:00
|
|
|
|
public IEnumerable<PadSchema> GetPadSchemas(IEmulator core)
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2017-07-13 17:02:08 +00:00
|
|
|
|
if (core is GPGX)
|
|
|
|
|
{
|
|
|
|
|
return GpgxPadSchemas((GPGX)core);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return PicoPadSchemas((PicoDrive)core);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private IEnumerable<PadSchema> PicoPadSchemas(PicoDrive core)
|
|
|
|
|
{
|
|
|
|
|
yield return SixButtonController(1);
|
|
|
|
|
yield return SixButtonController(2);
|
|
|
|
|
yield return ConsoleButtons();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private IEnumerable<PadSchema> GpgxPadSchemas(GPGX core)
|
|
|
|
|
{
|
|
|
|
|
var devs = (core).GetDevices();
|
2014-06-27 17:59:45 +00:00
|
|
|
|
int player = 1;
|
|
|
|
|
foreach (var dev in devs)
|
2014-06-26 21:09:14 +00:00
|
|
|
|
{
|
2014-06-27 17:59:45 +00:00
|
|
|
|
switch (dev)
|
2014-06-26 21:09:14 +00:00
|
|
|
|
{
|
2014-06-27 17:59:45 +00:00
|
|
|
|
case LibGPGX.INPUT_DEVICE.DEVICE_NONE:
|
2014-06-28 15:59:26 +00:00
|
|
|
|
continue; // do not increment player number because no device was attached
|
2014-06-27 17:59:45 +00:00
|
|
|
|
case LibGPGX.INPUT_DEVICE.DEVICE_PAD3B:
|
|
|
|
|
yield return ThreeButtonController(player);
|
|
|
|
|
break;
|
|
|
|
|
case LibGPGX.INPUT_DEVICE.DEVICE_PAD6B:
|
|
|
|
|
yield return SixButtonController(player);
|
|
|
|
|
break;
|
2014-06-28 12:31:28 +00:00
|
|
|
|
case LibGPGX.INPUT_DEVICE.DEVICE_LIGHTGUN:
|
2014-07-06 16:06:38 +00:00
|
|
|
|
yield return LightGun(player);
|
2014-06-27 17:59:45 +00:00
|
|
|
|
break;
|
2014-06-28 12:45:12 +00:00
|
|
|
|
case LibGPGX.INPUT_DEVICE.DEVICE_MOUSE:
|
|
|
|
|
yield return Mouse(player);
|
|
|
|
|
break;
|
2014-06-30 01:27:35 +00:00
|
|
|
|
case LibGPGX.INPUT_DEVICE.DEVICE_ACTIVATOR:
|
|
|
|
|
yield return Activator(player);
|
|
|
|
|
break;
|
2014-06-28 12:58:13 +00:00
|
|
|
|
case LibGPGX.INPUT_DEVICE.DEVICE_XE_A1P:
|
2014-06-30 01:27:35 +00:00
|
|
|
|
yield return XE1AP(player);
|
|
|
|
|
break;
|
2014-06-28 15:59:26 +00:00
|
|
|
|
default:
|
2014-06-28 12:58:13 +00:00
|
|
|
|
// TO DO
|
|
|
|
|
break;
|
2014-06-27 01:37:09 +00:00
|
|
|
|
}
|
2014-06-28 12:31:28 +00:00
|
|
|
|
|
2014-06-27 17:59:45 +00:00
|
|
|
|
player++;
|
2014-06-26 21:09:14 +00:00
|
|
|
|
}
|
2014-06-28 12:31:28 +00:00
|
|
|
|
|
|
|
|
|
yield return ConsoleButtons();
|
2014-06-26 20:59:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
2017-05-24 14:07:03 +00:00
|
|
|
|
private static PadSchema ThreeButtonController(int controller)
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
|
|
|
|
return new PadSchema
|
|
|
|
|
{
|
|
|
|
|
IsConsole = false,
|
|
|
|
|
DefaultSize = new Size(174, 90),
|
|
|
|
|
Buttons = new[]
|
|
|
|
|
{
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Up",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "",
|
|
|
|
|
Icon = Properties.Resources.BlueUp,
|
|
|
|
|
Location = new Point(14, 12),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Down",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "",
|
|
|
|
|
Icon = Properties.Resources.BlueDown,
|
|
|
|
|
Location = new Point(14, 56),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Left",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "",
|
|
|
|
|
Icon = Properties.Resources.Back,
|
|
|
|
|
Location = new Point(2, 34),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Right",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "",
|
|
|
|
|
Icon = Properties.Resources.Forward,
|
|
|
|
|
Location = new Point(24, 34),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} A",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "A",
|
|
|
|
|
Location = new Point(98, 40),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} B",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "B",
|
|
|
|
|
Location = new Point(122, 40),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} C",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "C",
|
|
|
|
|
Location = new Point(146, 40),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Start",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "S",
|
|
|
|
|
Location = new Point(122, 12),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-24 14:07:03 +00:00
|
|
|
|
private static PadSchema SixButtonController(int controller)
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
|
|
|
|
return new PadSchema
|
|
|
|
|
{
|
|
|
|
|
IsConsole = false,
|
|
|
|
|
DefaultSize = new Size(174, 90),
|
|
|
|
|
Buttons = new[]
|
|
|
|
|
{
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Up",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "",
|
|
|
|
|
Icon = Properties.Resources.BlueUp,
|
|
|
|
|
Location = new Point(14, 12),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Down",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "",
|
|
|
|
|
Icon = Properties.Resources.BlueDown,
|
|
|
|
|
Location = new Point(14, 56),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Left",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "",
|
|
|
|
|
Icon = Properties.Resources.Back,
|
|
|
|
|
Location = new Point(2, 34),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Right",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "",
|
|
|
|
|
Icon = Properties.Resources.Forward,
|
|
|
|
|
Location = new Point(24, 34),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} A",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "A",
|
|
|
|
|
Location = new Point(98, 40),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} B",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "B",
|
|
|
|
|
Location = new Point(122, 40),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} C",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "C",
|
|
|
|
|
Location = new Point(146, 40),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} X",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "X",
|
|
|
|
|
Location = new Point(98, 65),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Y",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "Y",
|
|
|
|
|
Location = new Point(122, 65),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Z",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "Z",
|
|
|
|
|
Location = new Point(146, 65),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-26 20:59:00 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Start",
|
2014-06-26 20:59:00 +00:00
|
|
|
|
DisplayName = "S",
|
|
|
|
|
Location = new Point(122, 12),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
2014-06-28 12:31:28 +00:00
|
|
|
|
|
2017-05-24 14:07:03 +00:00
|
|
|
|
private static PadSchema LightGun(int controller)
|
2014-06-28 12:31:28 +00:00
|
|
|
|
{
|
|
|
|
|
return new PadSchema
|
|
|
|
|
{
|
|
|
|
|
DisplayName = "Light Gun",
|
|
|
|
|
IsConsole = false,
|
2014-07-04 00:04:18 +00:00
|
|
|
|
DefaultSize = new Size(356, 300),
|
2014-06-28 12:31:28 +00:00
|
|
|
|
Buttons = new[]
|
|
|
|
|
{
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-28 12:31:28 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Lightgun X",
|
2014-06-28 12:31:28 +00:00
|
|
|
|
Location = new Point(14, 17),
|
|
|
|
|
Type = PadSchema.PadInputType.TargetedPair,
|
2014-07-04 00:04:18 +00:00
|
|
|
|
MaxValue = 10000,
|
2015-01-01 22:14:03 +00:00
|
|
|
|
TargetSize = new Size(320, 240),
|
2017-05-24 14:07:03 +00:00
|
|
|
|
SecondaryNames = new[]
|
2014-06-28 12:31:28 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
$"P{controller} Lightgun Y",
|
2014-06-28 12:31:28 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-28 12:31:28 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Lightgun Trigger",
|
2014-06-28 12:31:28 +00:00
|
|
|
|
DisplayName = "Trigger",
|
|
|
|
|
Location = new Point(284, 17),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-28 12:31:28 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Lightgun Start",
|
2014-06-28 12:31:28 +00:00
|
|
|
|
DisplayName = "Start",
|
|
|
|
|
Location = new Point(284, 40),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-24 14:07:03 +00:00
|
|
|
|
private static PadSchema Mouse(int controller)
|
2014-06-28 12:45:12 +00:00
|
|
|
|
{
|
|
|
|
|
return new PadSchema
|
|
|
|
|
{
|
|
|
|
|
DisplayName = "Mouse",
|
|
|
|
|
IsConsole = false,
|
2014-07-06 17:02:35 +00:00
|
|
|
|
DefaultSize = new Size(418, 290),
|
2014-06-28 12:45:12 +00:00
|
|
|
|
Buttons = new[]
|
|
|
|
|
{
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-28 12:45:12 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Mouse X",
|
2014-06-28 12:45:12 +00:00
|
|
|
|
Location = new Point(14, 17),
|
2014-07-06 16:44:50 +00:00
|
|
|
|
Type = PadSchema.PadInputType.AnalogStick,
|
|
|
|
|
MaxValue = 255,
|
|
|
|
|
TargetSize = new Size(520, 570),
|
2017-05-24 14:07:03 +00:00
|
|
|
|
SecondaryNames = new[]
|
2014-06-28 12:45:12 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
$"P{controller} Mouse Y",
|
2014-06-28 12:45:12 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-28 12:45:12 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Mouse Left",
|
2014-06-28 12:45:12 +00:00
|
|
|
|
DisplayName = "Left",
|
2014-07-06 17:02:35 +00:00
|
|
|
|
Location = new Point(365, 17),
|
2014-06-28 12:45:12 +00:00
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-28 12:45:12 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Mouse Center",
|
2014-06-28 12:45:12 +00:00
|
|
|
|
DisplayName = "Center",
|
2014-07-06 17:02:35 +00:00
|
|
|
|
Location = new Point(365, 40),
|
2014-06-28 12:45:12 +00:00
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-28 12:45:12 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Mouse Right",
|
2014-06-28 12:45:12 +00:00
|
|
|
|
DisplayName = "Right",
|
2014-07-06 17:02:35 +00:00
|
|
|
|
Location = new Point(365, 63),
|
2014-06-28 12:45:12 +00:00
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-28 12:45:12 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Mouse Start",
|
2014-06-28 12:45:12 +00:00
|
|
|
|
DisplayName = "Start",
|
2014-07-06 17:02:35 +00:00
|
|
|
|
Location = new Point(365, 86),
|
2014-06-28 12:45:12 +00:00
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-24 14:07:03 +00:00
|
|
|
|
private static PadSchema ConsoleButtons()
|
2014-06-28 12:31:28 +00:00
|
|
|
|
{
|
|
|
|
|
return new PadSchema
|
|
|
|
|
{
|
|
|
|
|
DisplayName = "Console",
|
|
|
|
|
IsConsole = true,
|
|
|
|
|
DefaultSize = new Size(150, 50),
|
|
|
|
|
Buttons = new[]
|
|
|
|
|
{
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-28 12:31:28 +00:00
|
|
|
|
{
|
|
|
|
|
Name = "Reset",
|
|
|
|
|
DisplayName = "Reset",
|
|
|
|
|
Location = new Point(10, 15),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-28 12:31:28 +00:00
|
|
|
|
{
|
|
|
|
|
Name = "Power",
|
|
|
|
|
DisplayName = "Power",
|
|
|
|
|
Location = new Point(58, 15),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
2014-07-07 16:03:22 +00:00
|
|
|
|
|
2017-05-24 14:07:03 +00:00
|
|
|
|
private static PadSchema Activator(int controller)
|
2014-06-30 01:27:35 +00:00
|
|
|
|
{
|
|
|
|
|
return new PadSchema
|
|
|
|
|
{
|
|
|
|
|
IsConsole = false,
|
|
|
|
|
DefaultSize = new Size(110, 110),
|
|
|
|
|
Buttons = new[]
|
|
|
|
|
{
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:27:35 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Up",
|
2014-06-30 01:27:35 +00:00
|
|
|
|
DisplayName = "",
|
|
|
|
|
Icon = Properties.Resources.BlueUp,
|
|
|
|
|
Location = new Point(47, 10),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:27:35 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Down",
|
2014-06-30 01:27:35 +00:00
|
|
|
|
DisplayName = "",
|
|
|
|
|
Icon = Properties.Resources.BlueDown,
|
|
|
|
|
Location = new Point(47, 73),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:27:35 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Left",
|
2014-06-30 01:27:35 +00:00
|
|
|
|
DisplayName = "",
|
|
|
|
|
Icon = Properties.Resources.Back,
|
|
|
|
|
Location = new Point(15, 43),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:27:35 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Right",
|
2014-06-30 01:27:35 +00:00
|
|
|
|
DisplayName = "",
|
|
|
|
|
Icon = Properties.Resources.Forward,
|
|
|
|
|
Location = new Point(80, 43),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:27:35 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} A",
|
2014-06-30 01:27:35 +00:00
|
|
|
|
DisplayName = "A",
|
|
|
|
|
Location = new Point(70, 65),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:27:35 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} B",
|
2014-06-30 01:27:35 +00:00
|
|
|
|
DisplayName = "B",
|
|
|
|
|
Location = new Point(70, 20),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:27:35 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} C",
|
2014-06-30 01:27:35 +00:00
|
|
|
|
DisplayName = "C",
|
|
|
|
|
Location = new Point(22, 20),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:27:35 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} A",
|
2014-06-30 01:27:35 +00:00
|
|
|
|
DisplayName = "A",
|
|
|
|
|
Location = new Point(22, 65),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:27:35 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Start",
|
2014-06-30 01:27:35 +00:00
|
|
|
|
DisplayName = "S",
|
|
|
|
|
Location = new Point(47, 43),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
2014-07-07 16:03:22 +00:00
|
|
|
|
|
2017-05-24 14:07:03 +00:00
|
|
|
|
private static PadSchema XE1AP(int controller)
|
2014-06-30 01:27:35 +00:00
|
|
|
|
{
|
|
|
|
|
return new PadSchema
|
|
|
|
|
{
|
|
|
|
|
IsConsole = false,
|
|
|
|
|
DefaultSize = new Size(174, 90),
|
|
|
|
|
Buttons = new[]
|
2014-06-30 01:09:15 +00:00
|
|
|
|
{
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:09:15 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} A",
|
2014-06-30 01:09:15 +00:00
|
|
|
|
DisplayName = "A",
|
|
|
|
|
Location = new Point(98, 40),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:09:15 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} B",
|
2014-06-30 01:09:15 +00:00
|
|
|
|
DisplayName = "B",
|
|
|
|
|
Location = new Point(122, 40),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:09:15 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} C",
|
2014-06-30 01:09:15 +00:00
|
|
|
|
DisplayName = "C",
|
|
|
|
|
Location = new Point(146, 40),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:09:15 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} D",
|
2014-06-30 01:09:15 +00:00
|
|
|
|
DisplayName = "D",
|
|
|
|
|
Location = new Point(98, 65),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:09:15 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} E1",
|
2014-06-30 01:09:15 +00:00
|
|
|
|
DisplayName = "E¹",
|
|
|
|
|
Location = new Point(122, 65),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:09:15 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} E2",
|
2014-06-30 01:09:15 +00:00
|
|
|
|
DisplayName = "E²",
|
|
|
|
|
Location = new Point(152, 65),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:09:15 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Start",
|
2014-06-30 01:09:15 +00:00
|
|
|
|
DisplayName = "Start",
|
|
|
|
|
Location = new Point(122, 12),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
},
|
2017-04-29 20:41:27 +00:00
|
|
|
|
new PadSchema.ButtonSchema
|
2014-06-30 01:09:15 +00:00
|
|
|
|
{
|
2019-03-18 14:06:37 +00:00
|
|
|
|
Name = $"P{controller} Select",
|
2014-06-30 01:09:15 +00:00
|
|
|
|
DisplayName = "Select",
|
|
|
|
|
Location = new Point(162, 12),
|
|
|
|
|
Type = PadSchema.PadInputType.Boolean
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-30 01:27:35 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
2014-06-26 20:59:00 +00:00
|
|
|
|
}
|
|
|
|
|
}
|