GBA: Oops

This commit is contained in:
Vicki Pfau 2017-06-02 18:46:30 -07:00
parent 9c23eb8428
commit 39a73ecb95
1 changed files with 1 additions and 5 deletions

View File

@ -696,13 +696,9 @@ void GBATestKeypadIRQ(struct GBA* gba) {
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);
}
}