preliminary work for mnemonics set up for Genesis. Doesn't work yet though since it will need core controller work set up
This commit is contained in:
parent
b2748b7836
commit
37619ba147
|
@ -176,6 +176,20 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
StringBuilder input = new StringBuilder("|");
|
StringBuilder input = new StringBuilder("|");
|
||||||
|
|
||||||
|
if (ControlType == "Genesis 3-Button Controller")
|
||||||
|
{
|
||||||
|
input.Append(IsBasePressed("Up") ? "U" : ".");
|
||||||
|
input.Append(IsBasePressed("Down") ? "D" : ".");
|
||||||
|
input.Append(IsBasePressed("Left") ? "L" : ".");
|
||||||
|
input.Append(IsBasePressed("Right") ? "R" : ".");
|
||||||
|
input.Append(IsBasePressed("A") ? "A" : ".");
|
||||||
|
input.Append(IsBasePressed("B") ? "B" : ".");
|
||||||
|
input.Append(IsBasePressed("C") ? "C" : ".");
|
||||||
|
input.Append(IsBasePressed("Start") ? "T" : ".");
|
||||||
|
input.Append("|");
|
||||||
|
return input.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
if (ControlType == "SMS Controller")
|
if (ControlType == "SMS Controller")
|
||||||
{
|
{
|
||||||
input.Append(IsBasePressed("P1 Up") ? "U" : ".");
|
input.Append(IsBasePressed("P1 Up") ? "U" : ".");
|
||||||
|
@ -474,6 +488,18 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
MyBoolButtons.Clear();
|
MyBoolButtons.Clear();
|
||||||
|
|
||||||
|
if (ControlType == "Genesis 3-Button Controller")
|
||||||
|
{
|
||||||
|
Force("Up", c[1]);
|
||||||
|
Force("Down", c[2]);
|
||||||
|
Force("Left", c[3]);
|
||||||
|
Force("Right", c[4]);
|
||||||
|
Force("A", c[5]);
|
||||||
|
Force("B", c[6]);
|
||||||
|
Force("C", c[7]);
|
||||||
|
Force("Start", c[8]);
|
||||||
|
}
|
||||||
|
|
||||||
if (ControlType == "SMS Controller")
|
if (ControlType == "SMS Controller")
|
||||||
{
|
{
|
||||||
Force("P1 Up", c[1]);
|
Force("P1 Up", c[1]);
|
||||||
|
|
Loading…
Reference in New Issue