http://bugs.winehq.org/show_bug.cgi?id=18838
Summary: DirectInput axis mapping does not work Product: Wine Version: 1.1.23 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dinput AssignedTo: wine-bugs@winehq.org ReportedBy: simotsa@gmail.com
According to http://wiki.winehq.org/UsefulRegistryKeys, it is possible to map axis by creating a registry key in HKCU\Software\Wine\DirectInput.
Using the following command, WINEDEBUG="+dinput" wine program.exe 2>&1 | grep joydev_enum_device
I can obtain the name of my joystick, which is "USB Joystick USB Joystick " in my case. I wanted to map axis 2 and 3 to axis 0 and 1. So I tried adding the following key:
"USB Joystick USB Joystick "="rX,rY,X,Y,Rz,Z"
To verify where the mapping worked, I ran the following command: WINEDEBUG="+dinput" wine program.exe 2>&1 | grep "changing axis"
and it returned: changing axis 0 => 0 changing axis 1 => 1 changing axis 2 => 2 changing axis 3 => 3 changing axis 4 => 4 changing axis 5 => 5
In the other word, axis mapping does not work.