diff options
author | Nebuleon Fumika | 2012-12-21 14:56:23 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2012-12-21 14:56:23 -0500 |
commit | e7f7d0282a7126f9e1095481b39c43e3e24909bf (patch) | |
tree | 1ba8b9182fcde71251f7b616dee4ca5e2e384c95 | |
parent | 371058df321a26ef2fcc9b82f5d2ac8db3fb4e65 (diff) | |
download | snes9x2005-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.cpp | 4 |
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; } |