aboutsummaryrefslogtreecommitdiff
path: root/source/ppu.cpp
diff options
context:
space:
mode:
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;