Odyssey2 - Virtualpads - cleanup, add Power button

This commit is contained in:
adelikat 2020-03-22 20:22:12 -05:00
parent f50b4e4c54
commit 0717878fae
1 changed files with 15 additions and 13 deletions

View File

@ -12,19 +12,9 @@ namespace BizHawk.Client.EmuHawk
{
public IEnumerable<PadSchema> GetPadSchemas(IEmulator core)
{
var O2SyncSettings = ((O2Hawk)core).GetSyncSettings().Clone();
// var port1 = O2SyncSettings.Port1;
// var port2 = O2SyncSettings.Port2;
// if (port1 == "O2 Controller")
// {
yield return StandardController(1);
// }
// if (port2 == "O2 Controller")
// {
yield return StandardController(2);
// }
yield return StandardController(1);
yield return StandardController(2);
yield return ConsoleButtons();
}
private static PadSchema StandardController(int controller)
@ -42,5 +32,17 @@ namespace BizHawk.Client.EmuHawk
}
};
}
private static PadSchema ConsoleButtons()
{
return new ConsoleSchema
{
Size = new Size(75, 50),
Buttons = new[]
{
new ButtonSchema(10, 15, "Power")
}
};
}
}
}