I downloaded Wine 1.3.27 and tried to patch with raw2.patch, which is supposed to be for this version of wine. I still got the above error on part of the patch. I assume this is not normal. I seen that Wine 1.3.28 is supposed to support xinput2, but I can't find how to install it. I think that updating to xinput2 should fix this bug...