[Wine] Joystick axis mapping issue (wine/linux)

Georg Bege therion at ninth-art.de
Tue Jul 30 03:09:44 CDT 2013


Thanks for your response - I figured a way out already.
But maybe others are interested too.
My distro is an weekly updated Gentoo GNU/Linux

uname -arm:
Linux enigma 3.8.13-gentoo-th #1 SMP Fri Jun 14 23:05:09 CEST 2013
x86_64 Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz GenuineIntel GNU/Linux

First thing is that I got remapping the axis via the HKCU DirectInput
key working - it works exacly as specified here:

The string given has to match completly match the one which can be found
via debugging: WINEDEBUG=+dinput wine game.exe &> out.log

However this doesnt work on very old wine inst. such as:
0.9.19 - I managed to get such a string as well but the last part of it
seemed like garbage (some wired multi-char/byte issue?)
You asking why Im using 0.9.19? Actually Im not using complete 0.9.19
but only dinput.dll.so from 0.9.19 in an 1.5.13 installation.
I know it sound crazy, but with this I got 'X-Wing Alliance' running for
good (without this old dinput.dll the keyboard will not work!)

So I made up my mind what else I could do, so I continued to do an hack
and got busy making myself familiar with winejoystick.drv sources -
actually I just disabled the polling (not actually polling but you get
my drift) in joystick.c for Z/Throttle axis.
This works out - the game is not anymore responding to these false signals.

A lil' bit dirty solution but if it works .... the major problem is
still the cheap joystick model and driver issue.
As this joystick has absolutly no Z Axis (just rudder).
So I also wrote to the guy who has written the driver (hid_dr.c) - maybe
I'll get an response.


Am 30.07.2013 01:10, schrieb Porter Smith:
> On 07/29/2013 10:24 AM, Georg Bege wrote:
>> Good day to you wine users
>> I've following problem, I've a cheap joystick which is recognized
>> as DragonRise Inc. - however many of them are I guess.
>> It's some china stuff which is each time labeled different but almost
>> always the same device (or so I've heard).
>> Everything works great except the joystick is recognized as being 7 axis
>> one - I really dont know why it does this.
>> It has X/Y of course and an rudder + some buttons.
>> It's not 7 axis nor do I need 7 axis, I only need 2 in fact -
>> now the very specific issue, the 3rd Axis somehow is tied to the
>> 0(X)-Axis - it changes if I change the X Axis.
>> And somehow it results in problem with an game I got running on wine and
>> want to play (X-Wing Alliance).
>> So what I really want to do is being the joystick recognized as 2 Axis
>> one OR override wine's behaviour with 2 Axis.
>> Any ideas?
>> regards,
>> Georg
> George,
>  Could you possibly supply us with error information? Oh and you
> distribution name and kernel series number.
> You know good oldIE 'uname -arm' with out the quotes in a terminal.
> Sounds to me like bug inb the Hardware Abstraction Layer (HAL)
> interpretation that wine is implementing. Have you tried a different
> distribution of make/model of joystick?
> I am running Xubuntu 12.04 LTS I'de try that if i where in you're shoes.
> Thanks,
> Chip
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: flipper88.vcf
> Type: text/x-vcard
> Size: 175 bytes
> Desc: not available
> URL:
> <http://www.winehq.org/pipermail/wine-users/attachments/20130729/f4016365/attachment.vcf>

More information about the wine-users mailing list