GBHawk linked modes: implement power button
This commit is contained in:
parent
1b301862db
commit
9831ca59bd
|
@ -55,9 +55,13 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink
|
||||||
|
|
||||||
_frame++;
|
_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");
|
bool cablediscosignalNew = controller.IsPressed("Toggle Cable");
|
||||||
|
|
|
@ -70,9 +70,17 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink3x
|
||||||
|
|
||||||
_frame++;
|
_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"))
|
if (controller.IsPressed("Toggle Cable LC") | controller.IsPressed("Toggle Cable CR") | controller.IsPressed("Toggle Cable RL"))
|
||||||
|
|
|
@ -85,9 +85,21 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink4x
|
||||||
|
|
||||||
_frame++;
|
_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"))
|
if (controller.IsPressed("Toggle Cable UD") | controller.IsPressed("Toggle Cable LR") | controller.IsPressed("Toggle Cable X") | controller.IsPressed("Toggle Cable 4x"))
|
||||||
|
|
Loading…
Reference in New Issue