Windows input optimizations

Fixes a bug where the thread wouldn't sleep when it should in some
configurations.

Also increases the time between polls for new controllers.
This commit is contained in:
Henrik Rydgård committed 2026-03-09 11:02:04 +01:00
1 parent 593e0fd8d9
commit 82069c3503
5 files changed
+7 -8

No files matched your search

+2 -3
View File
@@ -201,9 +201,8 @@ int XinputDevice::UpdateState() {
}
}
// If we get XInput, skip the others. This might not actually be a good idea,
// and was done to avoid conflicts between DirectInput and XInput.
return 0; // anySuccess ? UPDATESTATE_SKIP_PAD : 0;
// Previously we returned SKIP_PAD here but it wasn't a good idea.
return UPDATESTATE_NORMAL;
}
void XinputDevice::ReleaseAllKeys(int pad) {