I have successfully implemented a mouse filter to modify the x and y data in the ServiceCallback routine using the DDK example. Now I would like to get extra data from the input packets that are sent from the port driver. For example, my hardware sends mouse data using standard HID descriptor shown below, but I have additinally added a wireless id in the report. Since the SerivceCallback routine input data are of type PMOUSE_INPUT_DATA it does not include the wireless id data. How and where can I can this extra data from.
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x30, // USAGE (X)
0x09, 0x31, // USAGE (Y)
0x09, 0x22, // Usage (Wireless ID)
0x15, 0x81, // LOGICAL_MINIMUM (-127)
0x25, 0x81, // LOGICAL_MAXIMUM (-127)
0x75, 0x08, // REPORT_SIZE (8)
0x95, 0x02, // REPORT_COUNT (3)
Thanks in advance - jalong
|