gba: spend approximately 200 seconds on mnemonic stuff before getting bored
This commit is contained in:
parent
8a4393cd56
commit
b515b62b3e
|
@ -56,6 +56,13 @@ namespace BizHawk.MultiClient
|
|||
{"A", "A"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"GBA Controller", new Dictionary<string, string>()
|
||||
{
|
||||
{"Up", "U"}, {"Down", "D"}, {"Left", "L"}, {"Right", "R"}, {"Select", "s"}, {"Start", "S"}, {"B", "B"},
|
||||
{"A", "A"}, {"L", "L"}, {"R", "R"},
|
||||
}
|
||||
},
|
||||
{
|
||||
"Genesis 3-Button Controller", new Dictionary<string, string>()
|
||||
{
|
||||
|
|
|
@ -362,9 +362,24 @@ namespace BizHawk.MultiClient
|
|||
return "|..................|..................|";
|
||||
case "C64":
|
||||
return "|.....|.....|..................................................................|";
|
||||
case "GBA":
|
||||
return "|.|..........|";
|
||||
}
|
||||
}
|
||||
|
||||
private string GetGBAControllersAsMnemonic()
|
||||
{
|
||||
StringBuilder input = new StringBuilder("|");
|
||||
// there's no power button for now
|
||||
input.Append(".|");
|
||||
foreach (string button in Global.BUTTONS[ControlType].Keys)
|
||||
{
|
||||
input.Append(IsBasePressed(button) ? Global.BUTTONS[ControlType][button] : ".");
|
||||
}
|
||||
input.Append("|");
|
||||
return input.ToString();
|
||||
}
|
||||
|
||||
//adelikat: I"m going to do all controllers like this, so what if it is redundant! It is better than reducing lines of code with convoluted logic that is difficult to expand to support new platforms
|
||||
private string GetSNESControllersAsMnemonic()
|
||||
{
|
||||
|
@ -439,7 +454,7 @@ namespace BizHawk.MultiClient
|
|||
}
|
||||
else if (ControlType == "GBA Controller")
|
||||
{
|
||||
return "EAT AT JOE'S";
|
||||
return GetGBAControllersAsMnemonic();
|
||||
}
|
||||
|
||||
StringBuilder input = new StringBuilder("|");
|
||||
|
|
Loading…
Reference in New Issue