finish wiring up reset control for gameboy. i recorded and played back a movie containing a "soft reset", and it worked correctly.
This commit is contained in:
parent
77d0ff8ac8
commit
a8fb28f652
|
@ -118,7 +118,7 @@ namespace BizHawk.MultiClient
|
|||
public static readonly Dictionary<string, Dictionary<string, string>> COMMANDS = new Dictionary<string, Dictionary<string, string>>()
|
||||
{
|
||||
{"Atari 2600 Basic Controller", new Dictionary<string, string>() {{"Reset", "r"}, {"Select", "s"}}},
|
||||
{"Gameboy Controller", new Dictionary<string, string>() {}},
|
||||
{"Gameboy Controller", new Dictionary<string, string>() {{"Reset", "r"}}},
|
||||
{"Genesis 3-Button Controller", new Dictionary<string, string>() {}},
|
||||
{"NES Controller", new Dictionary<string, string>() {{"Reset", "r"}}},
|
||||
{"SNES Controller", new Dictionary<string, string>() {{"Reset", "r"}}},
|
||||
|
|
|
@ -395,7 +395,7 @@ namespace BizHawk.MultiClient
|
|||
StringBuilder input = new StringBuilder("|");
|
||||
|
||||
if (
|
||||
ControlType == "Genesis 3-Button Controller" || ControlType == "Gameboy Controller" ||
|
||||
ControlType == "Genesis 3-Button Controller" || // ControlType == "Gameboy Controller" ||
|
||||
ControlType == "PC Engine Controller"
|
||||
)
|
||||
{
|
||||
|
@ -406,7 +406,7 @@ namespace BizHawk.MultiClient
|
|||
input.Append(IsBasePressed("Reset") ? "r" : ".");
|
||||
input.Append(IsBasePressed("Select") ? "s" : ".");
|
||||
}
|
||||
if (ControlType == "NES Controller")
|
||||
if (ControlType == "NES Controller" || ControlType == "Gameboy Controller")
|
||||
{
|
||||
input.Append(IsBasePressed("Reset") ? Global.COMMANDS[ControlType]["Reset"] : ".");
|
||||
}
|
||||
|
@ -645,6 +645,11 @@ namespace BizHawk.MultiClient
|
|||
if (mnemonic.Length < 2) return;
|
||||
Force("Reset", mnemonic[1] != '.' && mnemonic[1] != '0' && mnemonic[1] != 'l');
|
||||
}
|
||||
if (ControlType == "Gameboy Controller")
|
||||
{
|
||||
if (mnemonic.Length < 2) return;
|
||||
Force("Reset", mnemonic[1] != '.');
|
||||
}
|
||||
if (ControlType == "SMS Controller" || ControlType == "TI83 Controller")
|
||||
{
|
||||
start = 1;
|
||||
|
|
Loading…
Reference in New Issue