[PATCH 7/7] dinput8: Use raw input interface for dinput8 mouse device
Rémi Bernon
rbernon at codeweavers.com
Tue Aug 27 07:42:10 CDT 2019
On 8/26/19 4:07 PM, Rémi Bernon wrote:
> Signed-off-by: Rémi Bernon <rbernon at 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
--
Rémi Bernon <rbernon at codeweavers.com>
More information about the wine-devel
mailing list