[HIDCLASS]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 2 Feb 2012 18:10:11 +0000 (18:10 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 2 Feb 2012 18:10:11 +0000 (18:10 +0000)
- Also store the HID_DEVICE_UP format in the hardware id list

svn path=/branches/usb-bringup-trunk/; revision=55378

drivers/hid/hidclass/pdo.c

index 7ce0ca0..a283a4f 100644 (file)
@@ -236,8 +236,9 @@ HidClassPDO_HandleQueryHardwareId(
     }
 
     //
-    // FIXME: add 'HID_DEVICE_UP:0001_U:0002'
+    // add HID_DEVICE_UP:0001_U:0002'
     //
+    Offset += swprintf(&Buffer[Offset], L"HID_DEVICE_UP:%04x_U:%04x", CollectionDescription->UsagePage, CollectionDescription->Usage) + 1;
 
     //
     // add HID