Merge the gamepad fix: poll_merged reads the gamepad again

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:57:48 +03:00
commit 734eee4383
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};