Read the gamepad again in every input poll: the menu's Minus+Plus change dropped the pad_read call from poll_merged, so the game saw no gamepad buttons or sticks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-10-26 10:56:51 +03:00
1 parent cd312dbca4
commit 581b5a8731
1 file changed
+1
+1
View File
@@ -399,6 +399,7 @@ static void poll_merged(uint64_t *buttons, int32_t *lx, int32_t *ly, int32_t *rx
AcquireSRWLockExclusive(&lock);
if (!state) start();
if (state > 0) {
if (state == 1) pad_read(&b, sl, sr);
HWND w = gfx_window_handle();
if (w && w == GetForegroundWindow()) {
uint8_t down[KEY_COUNT] = {0};