On Fri, Apr 09, 2021 at 01:11:35PM +0200, RĂ©mi Bernon wrote:
diff --git a/dlls/hidclass.sys/Makefile.in b/dlls/hidclass.sys/Makefile.in index be4af747853..2f9f30f8bef 100644 --- a/dlls/hidclass.sys/Makefile.in +++ b/dlls/hidclass.sys/Makefile.in @@ -187,6 +193,21 @@ NTSTATUS WINAPI PNP_AddDevice(DRIVER_OBJECT *driver, DEVICE_OBJECT *PDO)
HID_StartDeviceThread(device);
- rawinput.header.dwType = RIM_TYPEHID;
- rawinput.header.dwSize = offsetof(RAWINPUT, data.hid.bRawData[2]);
- rawinput.header.hDevice = ULongToHandle(ext->rawinput_handle);
- rawinput.header.wParam = GIDC_ARRIVAL;
- rawinput.data.hid.dwCount = 1;
- rawinput.data.hid.dwSizeHid = 2;
- rawinput.data.hid.bRawData[0] = ext->preparseData->caps.UsagePage;
- rawinput.data.hid.bRawData[1] = ext->preparseData->caps.Usage;
UsagePage and Usage are 16 bits each. See USB Device Class Definition for Human Interface Devices section 5.5 on page 17.