http://bugs.winehq.org/show_bug.cgi?id=7303
Summary: Joystick axis misbehaviour makes GTA:San Andreas unplayable Product: Wine Version: 0.9.30. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P3 Component: wine-directx-dinput AssignedTo: wine-bugs@winehq.org ReportedBy: shacklein@gmail.com
After upgrading from 0.9.29 to 0.9.30, I found that the Rz axis on my joystick, as defined in HKCU/Software/Wine/DirectInput, misbehaves in that when centred, Wine seems to think that it is in fact halfway between centre and top.
With the aid of some diagnostic lines, I traced this problem. I found that some lMin/lMax properties were being set to -2000 and 2000 respectively, but the properties for the Rz axis (which seems to be index 5), do not get set accordingly, and are set to what appears to be a fallback setting of 0 and 0xffff respectively.
The patch I will provide is probably not the best solution, and probably breaks a lot of things, but it does fix the problem I was having.