PSX - Virtualpad - pay attention to the number of conntected controllers - still todo: schema for Gamepad and DualAnalog

This commit is contained in:
adelikat 2015-02-01 14:02:01 +00:00
parent 0c1dedbe75
commit 4eda12a8b0
1 changed files with 11 additions and 2 deletions

View File

@ -12,8 +12,17 @@ namespace BizHawk.Client.EmuHawk
public IEnumerable<PadSchema> GetPadSchemas()
{
var psx = ((Octoshock)Global.Emulator);
yield return DualShockController(1);
yield return DualShockController(2);
var settings = (Octoshock.SyncSettings)psx.GetSyncSettings();
// TODO: support other types
for (int i = 0; i < settings.Controllers.Length; i++)
{
if (settings.Controllers[i].IsConnected)
{
yield return DualShockController(i + 1);
}
}
yield return ConsoleButtons(psx);
}