https://bugs.winehq.org/show_bug.cgi?id=50506
Bug ID: 50506 Summary: Do not receive WM_INPUT messages for game controllers registered with RegisterRawInputDevices Product: Wine Version: 6.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: lunarlambda@gmail.com Distribution: ---
I am using RegisterRawInputDevices with HID_USAGE_PAGE_GENERIC, HID_USAGE_GENERIC_JOYSTICK, and HID_USAGE_GENERIC_GAMEPAD.
My controller (Nintendo Switch Pro Controller) shows up in joy.cpl, and input works.
The controller shows up in GetRawInputDeviceList, I can query it with GetRawInputDeviceInfo, and opening it and getting the product name via HidD_GetProductString also works.
However, my window simply never receives any WM_INPUT messages.
If I register a keyboard instead (HID_USAGE_GENERIC_KEYBOARD), using the same code, I do get WM_INPUT messages.
I was hopeful that this had been fixed in 6.0, but I was looking through dlls/user32/rawinput.c, but I cannot find anything indicative of a lack of support.