GBA: Oops
Vicki Pfau vi@endrift.com
Fri, 02 Jun 2017 18:46:30 -0700
1 files changed,
1 insertions(+),
5 deletions(-)
jump to
M
src/gba/gba.c
→
src/gba/gba.c
@@ -696,13 +696,9 @@
keycnt &= 0x3FF; keyInput = *gba->keySource; - if (popcount32(keyInput) > 2) { - keycnt = keycnt; - } - if (isAnd && keycnt == keyInput) { GBARaiseIRQ(gba, IRQ_KEYPAD); - } else if (!isAnd && keyInput) { + } else if (!isAnd && keycnt & keyInput) { GBARaiseIRQ(gba, IRQ_KEYPAD); } }