This commit is contained in:
alyosha-tas 2017-05-25 12:53:11 -04:00 committed by GitHub
parent 11176e29de
commit 1a7f8b0ff8
1 changed files with 5 additions and 5 deletions

View File

@ -933,12 +933,12 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return 0;
int idx = row * 8 + column * 4;
byte ret = 0;
byte ret = 0x1E;
if (c.IsPressed(Buttons[idx])) ret |= 16;
if (c.IsPressed(Buttons[idx + 1])) ret |= 8;
if (c.IsPressed(Buttons[idx + 2])) ret |= 4;
if (c.IsPressed(Buttons[idx + 3])) ret |= 2;
if (c.IsPressed(Buttons[idx])) ret &= 0x0E;
if (c.IsPressed(Buttons[idx + 1])) ret &= 0x16;
if (c.IsPressed(Buttons[idx + 2])) ret &= 0x1A;
if (c.IsPressed(Buttons[idx + 3])) ret &= 0x1C;
// nothing is clocked here
return ret;