Added dinput-DIPROP_BUFFERSIZE patchset

This commit is contained in:
Alistair Leslie-Hughes
2020-01-11 16:56:16 +11:00
parent bd8f35fad1
commit 1e3eb08c69
6 changed files with 237 additions and 19 deletions

View File

@@ -1,8 +1,8 @@
From 7f814cd77f1766b98318bbc8ea5fff241c20ec4b Mon Sep 17 00:00:00 2001
From 8217791e4b68de86e713dee0ecdd3c5ccd029017 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Bernon?= <rbernon@codeweavers.com>
Date: Mon, 26 Aug 2019 16:06:59 +0200
Subject: [PATCH 11/12] dinput8: Add support for dinput devices that use raw
input interface.
Subject: [PATCH] dinput8: Add support for dinput devices that use raw input
interface.
This adds a global message window that will receive WM_INPUT messages,
dispatched to every raw input device event_proc.
@@ -16,7 +16,7 @@ outside of dinput, as exposed by the unit tests.
2 files changed, 86 insertions(+), 1 deletion(-)
diff --git a/dlls/dinput/device_private.h b/dlls/dinput/device_private.h
index 114e3971ed8..9116aaeab66 100644
index 423e8f77792..b0fb181fc6d 100644
--- a/dlls/dinput/device_private.h
+++ b/dlls/dinput/device_private.h
@@ -70,6 +70,9 @@ struct IDirectInputDeviceImpl
@@ -27,7 +27,7 @@ index 114e3971ed8..9116aaeab66 100644
+ RAWINPUTDEVICE raw_device; /* raw device to (un)register */
+
LPDIDEVICEOBJECTDATA data_queue; /* buffer for 'GetDeviceData'. */
int queue_len; /* size of the queue - set in 'SetProperty' */
int queue_len; /* valid size of the queue */
int queue_head; /* position to write new event into queue */
diff --git a/dlls/dinput/dinput_main.c b/dlls/dinput/dinput_main.c
index 4d2d4afe106..9e3b9f48250 100644