https://bugs.winehq.org/show_bug.cgi?id=50506
--- Comment #4 from RĂ©mi Bernon rbernon@codeweavers.com --- I wasn't actively trying to upstream the patches, no, but mostly because there were based upon some similar mouse input patches that required some other outstanding focus bugs to be solved first (see https://bugs.winehq.org/show_bug.cgi?id=2155#c25, for explanation -although the fix is still incorrect I think).
Although the HID rawinput patches would suffer from the same issues described above, it's probably more harmless (and already the case anyway) to have gamepad input be received while in background than it is for mouse or keyboard. The HID patches could probably be re-ordered, and I'll try to see if I can upstream them.
It also probably depends on https://bugs.winehq.org/show_bug.cgi?id=50510, which I'l look at too.