virtual pads - pce, pcfx - add console buttons

This commit is contained in:
adelikat 2020-06-15 13:29:31 -05:00
parent 25dddf5160
commit c8a0b6c323
2 changed files with 30 additions and 0 deletions

View File

@ -109,6 +109,8 @@ namespace BizHawk.Client.EmuHawk
MessageBox.Show($"Controller type {device} not supported yet.");
}
}
yield return ConsoleButtons();
}
private static PadSchema StandardController(int controller)
@ -163,5 +165,18 @@ namespace BizHawk.Client.EmuHawk
}
};
}
private static PadSchema ConsoleButtons()
{
return new ConsoleSchema
{
Size = new Size(150, 50),
Buttons = new[]
{
new ButtonSchema(10, 15, "Reset"),
new ButtonSchema(58, 15, "Power")
}
};
}
}
}

View File

@ -36,6 +36,8 @@ namespace BizHawk.Client.EmuHawk
MessageBox.Show($"Controller type {device} not supported yet.");
}
}
yield return ConsoleButtons();
}
private static PadSchema StandardController(int controller)
@ -90,5 +92,18 @@ namespace BizHawk.Client.EmuHawk
}
};
}
private static PadSchema ConsoleButtons()
{
return new ConsoleSchema
{
Size = new Size(150, 50),
Buttons = new[]
{
new ButtonSchema(10, 15, "Reset"),
new ButtonSchema(58, 15, "Power")
}
};
}
}
}