Mouse input: Approximate the old smoothing function

This commit is contained in:
Henrik Rydgård committed 2023-12-14 19:24:39 +01:00
1 parent 7b0ee5440d
commit d397635e49
4 files changed
+62 -32

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ void WindowsInputManager::Init() {
}
void WindowsInputManager::PollControllers() {
static const int CHECK_FREQUENCY = 71;
static const int CHECK_FREQUENCY = 71; // Just an arbitrary prime to try to not collide with other periodic checks.
if (checkCounter_++ > CHECK_FREQUENCY) {
#ifndef _M_ARM
size_t newCount = DinputDevice::getNumPads();