On 8/26/19 4:07 PM, Rémi Bernon wrote:
Signed-off-by: Rémi Bernon rbernon@codeweavers.com
dlls/dinput/mouse.c | 166 ++++++++++++++++++++++++++++++++++++ dlls/dinput8/tests/device.c | 10 --- 2 files changed, 166 insertions(+), 10 deletions(-)
diff --git a/dlls/dinput/mouse.c b/dlls/dinput/mouse.c index 52a766b2a1a..e4f179c6b78 100644 --- a/dlls/dinput/mouse.c +++ b/dlls/dinput/mouse.c @@ -246,6 +246,13 @@ static SysMouseImpl *alloc_device(REFGUID rguid, IDirectInputImpl *dinput) list_add_tail(&dinput->devices_list, &newDevice->base.entry); LeaveCriticalSection(&dinput->crit);
- if (dinput->dwVersion >= DIRECTINPUT_VERSION)
- {
newDevice->base.use_raw_input = TRUE;
newDevice->base.raw_device.usUsagePage = 1; /* HID generic device page */
newDevice->base.raw_device.usUsage = 2; /* HID generic mouse */
- }
return newDevice;
Same here, dinput->dwVersion >= 0x0800