all repos — mgba @ a2e32b61c2169f590a881abb3300c61712fd1c05

mGBA Game Boy Advance Emulator

GB: Fix keys
Jeffrey Pfau jeffrey@endrift.com
Thu, 21 Jan 2016 01:11:29 -0800
commit

a2e32b61c2169f590a881abb3300c61712fd1c05

parent

06f47c8d2ca39ac0a02a5878ae09ccf6958b05e6

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

jump to
M src/gb/io.csrc/gb/io.c

@@ -100,10 +100,10 @@

static uint8_t _readKeys(struct GB* gb) { uint8_t keys = *gb->keySource; switch (gb->memory.io[REG_JOYP] & 0x30) { - case 0x10: + case 0x20: keys >>= 4; break; - case 0x20: + case 0x10: break; default: // ???