PSX - define controller buttons based on the controller type

This commit is contained in:
adelikat 2015-02-01 21:58:25 +00:00
parent 4ff447d9c6
commit d3ff7a2e7a
1 changed files with 16 additions and 11 deletions

View File

@ -66,9 +66,13 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
"P" + (i + 1) + " R2", "P" + (i + 1) + " R2",
"P" + (i + 1) + " L3", "P" + (i + 1) + " L3",
"P" + (i + 1) + " R3", "P" + (i + 1) + " R3",
"P" + (i + 1) + " MODE",
}); });
if (_SyncSettings.Controllers[i].Type != ControllerSetting.ControllerType.Gamepad)
{
ControllerDefinition.BoolButtons.Add("P" + (i + 1) + " MODE");
ControllerDefinition.FloatControls.AddRange(new[] ControllerDefinition.FloatControls.AddRange(new[]
{ {
"P" + (i + 1) + " LStick X", "P" + (i + 1) + " LStick X",
@ -83,6 +87,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
ControllerDefinition.FloatRanges.Add(new[] { 255.0f, 128.0f, 0.0f }); ControllerDefinition.FloatRanges.Add(new[] { 255.0f, 128.0f, 0.0f });
} }
} }
}
ControllerDefinition.BoolButtons.AddRange(new[] ControllerDefinition.BoolButtons.AddRange(new[]
{ {