PSX - Virtualpad - pay attention to the number of conntected controllers - still todo: schema for Gamepad and DualAnalog
This commit is contained in:
parent
0c1dedbe75
commit
4eda12a8b0
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue