GBA I/O: Update KEYINPUT in internal I/O memory (fixes #2235)

This commit is contained in:
Vicki Pfau 2021-10-14 01:46:55 -07:00
parent d6ad731ebe
commit aceb1dff97
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,7 @@ Other fixes:
- Qt: Fix corrupted savestate and fatal error text
- Qt: Fix sprite compositing when sprite tiles go out of bounds (fixes mgba.io/i/2348)
Misc:
- GBA I/O: Update KEYINPUT in internal I/O memory (fixes mgba.io/i/2235)
- SDL: Use SDL_JoystickRumble where available
- Wii: Add adjustable gyroscope settings (closes mgba.io/i/2245)

View File

@ -763,8 +763,9 @@ uint16_t GBAIORead(struct GBA* gba, uint32_t address) {
}
}
}
return 0x3FF ^ input;
gba->memory.io[address >> 1] = 0x3FF ^ input;
}
break;
case REG_SIOCNT:
return gba->sio.siocnt;
case REG_RCNT: