Genesis mouse - mnemonics, default buttons and virtual pad
This commit is contained in:
parent
1361e2ff23
commit
88d4a2a5a8
|
@ -73,6 +73,11 @@ namespace BizHawk.Client.Common
|
|||
{ "Trigger 1", '1' },
|
||||
{ "Trigger 2", '2' },
|
||||
|
||||
{ "Mouse Left", 'l' },
|
||||
{ "Mouse Right", 'r' },
|
||||
{ "Mouse Center", 'c' },
|
||||
{ "Mouse Start", 's' },
|
||||
|
||||
{"Mode", 'M'},
|
||||
|
||||
{ "Fire", 'F' },
|
||||
|
|
|
@ -30,6 +30,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
case LibGPGX.INPUT_DEVICE.DEVICE_LIGHTGUN:
|
||||
yield return LighGun(player);
|
||||
break;
|
||||
case LibGPGX.INPUT_DEVICE.DEVICE_MOUSE:
|
||||
yield return Mouse(player);
|
||||
break;
|
||||
}
|
||||
|
||||
player++;
|
||||
|
@ -243,6 +246,59 @@ namespace BizHawk.Client.EmuHawk
|
|||
};
|
||||
}
|
||||
|
||||
public static PadSchema Mouse(int controller)
|
||||
{
|
||||
return new PadSchema
|
||||
{
|
||||
DisplayName = "Mouse",
|
||||
IsConsole = false,
|
||||
DefaultSize = new Size(400, 290),
|
||||
Buttons = new[]
|
||||
{
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Mouse X",
|
||||
Location = new Point(14, 17),
|
||||
Type = PadSchema.PadInputType.TargetedPair,
|
||||
TargetSize = new Size(320, 270),
|
||||
SecondaryNames = new []
|
||||
{
|
||||
"P" + controller + " Mouse Y",
|
||||
"P" + controller + " Mouse Left",
|
||||
}
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Mouse Left",
|
||||
DisplayName = "Left",
|
||||
Location = new Point(335, 17),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Mouse Center",
|
||||
DisplayName = "Center",
|
||||
Location = new Point(335, 40),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Mouse Right",
|
||||
DisplayName = "Right",
|
||||
Location = new Point(335, 63),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
},
|
||||
new PadSchema.ButtonScema
|
||||
{
|
||||
Name = "P" + controller + " Mouse Start",
|
||||
DisplayName = "Start",
|
||||
Location = new Point(335, 86),
|
||||
Type = PadSchema.PadInputType.Boolean
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static PadSchema ConsoleButtons()
|
||||
{
|
||||
return new PadSchema
|
||||
|
|
|
@ -564,8 +564,12 @@
|
|||
"P2 Y": "",
|
||||
"P2 Z": "",
|
||||
"P2 Mode": "",
|
||||
"P2 Lightgun Trigger": "WMouse Click",
|
||||
"P2 Lightgun Trigger": "WMouse L",
|
||||
"P2 Lightgun Start": "NumberPad5",
|
||||
"P2 Mouse Left": "WMouse L",
|
||||
"P2 Mouse Center": "WMouse M",
|
||||
"P2 Mouse Right": "WMouse R",
|
||||
"P2 Mouse Start": "NumberPad5",
|
||||
"Power": "",
|
||||
"Reset": ""
|
||||
},
|
||||
|
@ -854,6 +858,16 @@
|
|||
"Mult": 1.0,
|
||||
"Deadzone": 0.0
|
||||
},
|
||||
"P2 Mouse X": {
|
||||
"Value": "WMouse X",
|
||||
"Mult": 1.0,
|
||||
"Deadzone": 0.0
|
||||
},
|
||||
"P2 Mouse Y": {
|
||||
"Value": "WMouse Y",
|
||||
"Mult": 1.0,
|
||||
"Deadzone": 0.0
|
||||
},
|
||||
},
|
||||
"WonderSwan Controller": {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue