https://bugs.winehq.org/show_bug.cgi?id=48433
--- Comment #4 from RĂ©mi Bernon rbernon@codeweavers.com --- Created attachment 66209 --> https://bugs.winehq.org/attachment.cgi?id=66209 Staging patch
I believe this should fix the problem. It could be added at the end of the user32-rawinput-nolegacy staging patch series.
It should be done differently to avoid the regression in the middle of the series, but that would require updating the other patches.