https://bugs.winehq.org/show_bug.cgi?id=50510
Bug ID: 50510 Summary: user32-rawinput-hid patches sending bogus HID data Product: Wine-staging Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: lunarlambda@gmail.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
I'm using RawInput and HidP APIs to parse joystick input. My controller has 6 axis and 14 buttons, and shows up fine in `wine control joy.cpl.`
However, the data I get from HidP_GetCaps and HidP_GetUsages / HidP_GetUsageValue seems to be nonsense, as it's telling me my controller has only 11 buttons, and also my window is being completely spammed with WM_INPUT messages, with HidP_GetUsages returning usages like 191 or 551, and HidP_GetUsageValue returning seemingly random values too, even when the controller is *completely* still.
I tried using the test apps listed on the wiki but they don't seem to be of much use (one of them crashes because of unimplemented _vcswprintf or something)
I'm afraid that's all the info I can provide without further instructions. I am confident I am using the HID APIs correctly.