aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNebuleon Fumika2012-12-21 14:56:23 -0500
committerNebuleon Fumika2012-12-21 14:56:23 -0500
commite7f7d0282a7126f9e1095481b39c43e3e24909bf (patch)
tree1ba8b9182fcde71251f7b616dee4ca5e2e384c95
parent371058df321a26ef2fcc9b82f5d2ac8db3fb4e65 (diff)
downloadsnes9x2005-e7f7d0282a7126f9e1095481b39c43e3e24909bf.tar.gz
snes9x2005-e7f7d0282a7126f9e1095481b39c43e3e24909bf.tar.bz2
snes9x2005-e7f7d0282a7126f9e1095481b39c43e3e24909bf.zip
Previous update made it impossible to press the Right and Down keys.
-rw-r--r--source/ppu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/ppu.cpp b/source/ppu.cpp
index 904bcde..5c7d690 100644
--- a/source/ppu.cpp
+++ b/source/ppu.cpp
@@ -3246,9 +3246,9 @@ void S9xUpdateJoypads ()
for (i = 0; i < 5; i++)
{
- if (IPPU.Joypads [i] & (SNES_LEFT_MASK | SNES_RIGHT_MASK))
+ if ((IPPU.Joypads [i] & (SNES_LEFT_MASK | SNES_RIGHT_MASK)) == (SNES_LEFT_MASK | SNES_RIGHT_MASK))
IPPU.Joypads [i] &= ~SNES_RIGHT_MASK;
- if (IPPU.Joypads [i] & (SNES_UP_MASK | SNES_DOWN_MASK))
+ if ((IPPU.Joypads [i] & (SNES_UP_MASK | SNES_DOWN_MASK)) == (SNES_UP_MASK | SNES_DOWN_MASK))
IPPU.Joypads [i] &= ~SNES_DOWN_MASK;
}