[Bug 50510] user32-rawinput-hid patches sending bogus HID data

WineHQ Bugzilla wine-bugs at winehq.org
Mon Jan 18 11:00:36 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=50510

--- Comment #2 from lunarlambda at gmail.com ---
(In reply to Rémi Bernon from comment #1)
> I suppose this is following https://bugs.winehq.org/show_bug.cgi?id=50506,
> and the gamepad is a Nintendo Switch Pro Controller?

Indeed. The HID reports are 16 bytes in size, which *seems* to be correct.
However some bytes (relating to axis values) jump around wildly, far beyond
what could be explained with drift (and again, it shows up perfectly normal in
joy.cpl)

bytes 1, 3, 5 just seem to be noise
bytes 2, 4, 6, and 8 change consistently with axis movement (X, Y, RX, RY)
bytes 9 and 10 are left trigger (either 00 or FF 7F)
bytes 11 and 12 are right trigger (same values as above)
byte 13 is buttons (as bitflags, one button don't seem to show up though)
byte 14 is hat axis value, 0x80 for cardinals, 1,2,3,4 for corners
bytes 15 and 16 never change, 98 5C

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list