mirror of https://github.com/mgba-emu/mgba.git
GBA: Oops
This commit is contained in:
parent
9c23eb8428
commit
39a73ecb95
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue