aboutsummaryrefslogtreecommitdiff
path: root/source/ppu.cpp
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-05 04:01:01 -0500
committerNebuleon Fumika2013-01-05 04:01:01 -0500
commit1c48900fdace9b2ba1cd3b93ecae8aacb1e11168 (patch)
treeaeebe40a9d6796565ab827c0d01d9e2c8eb1b801 /source/ppu.cpp
parent6df0031bdb8b7de341512e7fb807097243c9f840 (diff)
downloadsnes9x2005-1c48900fdace9b2ba1cd3b93ecae8aacb1e11168.tar.gz
snes9x2005-1c48900fdace9b2ba1cd3b93ecae8aacb1e11168.tar.bz2
snes9x2005-1c48900fdace9b2ba1cd3b93ecae8aacb1e11168.zip
Sync ALL bits of the joypad again. This may make controls a bit slower to parse, but is required by Super Mario All-Stars at least.
Diffstat (limited to 'source/ppu.cpp')
-rw-r--r--source/ppu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/ppu.cpp b/source/ppu.cpp
index 91e16a0..9a3230c 100644
--- a/source/ppu.cpp
+++ b/source/ppu.cpp
@@ -2973,7 +2973,7 @@ void S9xUpdateJoypads ()
{
IPPU.Joypads [i] = 0;
// Sync each key
- for (k = SNES_TR_MASK /* lowest value */; k != SNES_B_MASK << 1 /* one bit past the highest value */; k <<= 1)
+ for (k = 1; k != 0; k <<= 1)
{
KeyValue = IPPU.JoypadsAtHBlanks[i][0] & k;
StartedPressed = KeyValue != 0;