On Tue Nov 22 10:05:37 2022 +0000, Mohamad Al-Jaf wrote:
> Thanks for the detailed feedback and review @besentv and @rbernon. :)
No problem. I actually intend to expand the Wiki article on WinRT programming but I currently don't have much time.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1343#note_16909
This fixes two things:
* HID report descriptor parser enum for local items. Close inspection of page 40 of [Device Class Definition for HID 1.11](https://www.usb.org/document-library/device-class-definition-hid-111) reveals a jump between Designator Maximum (0101) and String Index (0111). This caused a controller of mine to not get recognized.
* HidP_SetUsageValue for items that define multiple controls (with Report Count > 1). Attempting to set one value would result in HIDP_STATUS_BUFFER_TOO_SMALL.
--
v4: hid: Fix HidP_(Get|Set)(Scaled)UsageValue with usage ranges and arrays.
hid: Move (get|set)_usage_value around and use it for scaled values.
winexinput.sys: Fix incorrect HID STRING_INDEX tag value.
winebus.sys: Fix incorrect HID STRING_INDEX tag value.
ntoskrnl.exe/tests: Fix incorrect HID STRING_INDEX tag value.
hidparse.sys: Fix incorrect HID STRING_INDEX tag value.
dinput/tests: Fix incorrect HID STRING_INDEX tag value.
dinput/tests: Add more HidP_(Set|Get)UsageValue tests with array caps.
dinput/tests: Add more tests for HidP_SetUsageValue.
https://gitlab.winehq.org/wine/wine/-/merge_requests/1448