From aceb1dff97540f1432360a048e82d2c515462faf Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 14 Oct 2021 01:46:55 -0700 Subject: [PATCH] GBA I/O: Update KEYINPUT in internal I/O memory (fixes #2235) --- CHANGES | 1 + src/gba/io.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 9b04bacb1..5b351afae 100644 --- a/CHANGES +++ b/CHANGES @@ -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) diff --git a/src/gba/io.c b/src/gba/io.c index cc39e1192..7abf28047 100644 --- a/src/gba/io.c +++ b/src/gba/io.c @@ -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: