GBHawk linked modes: implement power button

This commit is contained in:
alyosha-tas 2020-02-22 09:19:05 -05:00
parent 1b301862db
commit 9831ca59bd
3 changed files with 30 additions and 6 deletions

View File

@ -55,9 +55,13 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink
_frame++;
if (controller.IsPressed("Power"))
if (controller.IsPressed("P1 Power"))
{
HardReset();
L.HardReset();
}
if (controller.IsPressed("P2 Power"))
{
R.HardReset();
}
bool cablediscosignalNew = controller.IsPressed("Toggle Cable");

View File

@ -70,9 +70,17 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink3x
_frame++;
if (controller.IsPressed("Power"))
if (controller.IsPressed("P1 Power"))
{
HardReset();
L.HardReset();
}
if (controller.IsPressed("P2 Power"))
{
C.HardReset();
}
if (controller.IsPressed("P3 Power"))
{
R.HardReset();
}
if (controller.IsPressed("Toggle Cable LC") | controller.IsPressed("Toggle Cable CR") | controller.IsPressed("Toggle Cable RL"))

View File

@ -85,9 +85,21 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink4x
_frame++;
if (controller.IsPressed("Power"))
if (controller.IsPressed("P1 Power"))
{
HardReset();
A.HardReset();
}
if (controller.IsPressed("P2 Power"))
{
B.HardReset();
}
if (controller.IsPressed("P3 Power"))
{
C.HardReset();
}
if (controller.IsPressed("P4 Power"))
{
D.HardReset();
}
if (controller.IsPressed("Toggle Cable UD") | controller.IsPressed("Toggle Cable LR") | controller.IsPressed("Toggle Cable X") | controller.IsPressed("Toggle Cable 4x"))