all repos — mgba @ 39a73ecb95659ef36ec40519acc16e403adc15a2

mGBA Game Boy Advance Emulator

GBA: Oops
Vicki Pfau vi@endrift.com
Fri, 02 Jun 2017 18:46:30 -0700
commit

39a73ecb95659ef36ec40519acc16e403adc15a2

parent

9c23eb8428b2fd81d00c95ea1be56b508ba2b115

1 files changed, 1 insertions(+), 5 deletions(-)

jump to
M src/gba/gba.csrc/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); } }