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.
http://bugs.winehq.org/show_bug.cgi?id=18838
--- Comment #1 from Wai Ling Tsang simotsa@gmail.com 2009-06-08 04:14:36 --- I tested it with another joystick with 2 axis and a proper device name and it works. So axis mapping either it doesn't work for device with spaces at the end, or it doesn't work for 6 axis.
http://bugs.winehq.org/show_bug.cgi?id=18838
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |hardware, source
http://bugs.winehq.org/show_bug.cgi?id=18838
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vitaliy@kievinfo.com
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2009-06-10 20:37:23 --- I'm working on winecfg addition for easier mapping. But don't have much time lately to get it finished.
http://bugs.winehq.org/show_bug.cgi?id=18838
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2009-08-21 08:35:12 --- Now evdev driver supports axes mapping too.
http://bugs.winehq.org/show_bug.cgi?id=18838
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2009-08-21 12:53:01 --- Closing bugs fixed in 1.1.28.