[PATCH 6/7] dinput8: Use raw input interface for dinput8 keyboard device

Rémi Bernon rbernon at codeweavers.com
Tue Aug 27 07:41:32 CDT 2019


> @@ -295,6 +344,13 @@ static SysKeyboardImpl *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 = 6; /* HID generic keyboard */
> +    }
> +

Of course this should be >= 0x0800
-- 
Rémi Bernon <rbernon at codeweavers.com>



More information about the wine-devel mailing list