dinput: Increase device buffer size to 1024.

The buffer size was previously limited to 20 in:

  8d05256172

Testing shows that it is somewhere around 1024 on Windows, and using a
smaller buffer causes some input data to be lost with high polling rate
mouses. It can be spotted in Wolfenstein II: New Colossus menus.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2020-02-14 11:01:39 +01:00 committed by Alexandre Julliard
parent ffd4bb2520
commit 50440e28bb
1 changed files with 1 additions and 1 deletions

View File

@ -1398,7 +1398,7 @@ HRESULT WINAPI IDirectInputDevice2WImpl_SetProperty(
EnterCriticalSection(&This->crit); EnterCriticalSection(&This->crit);
This->buffersize = pd->dwData; This->buffersize = pd->dwData;
This->queue_len = min(This->buffersize, 20); This->queue_len = min(This->buffersize, 1024);
HeapFree(GetProcessHeap(), 0, This->data_queue); HeapFree(GetProcessHeap(), 0, This->data_queue);
This->data_queue = !This->queue_len ? NULL : HeapAlloc(GetProcessHeap(), 0, This->data_queue = !This->queue_len ? NULL : HeapAlloc(GetProcessHeap(), 0,