Configure Joystick in Wine

Questions about Wine on Linux
Locked
iRy
Newbie
Newbie
Posts: 4
Joined: Wed Feb 06, 2013 6:05 pm

Configure Joystick in Wine

Post by iRy »

Hello,
I want to use a Joystick in Wine. The Problem is I've got 3 Joysticks (dev/input/js0 - 2). Wine only sees js0.
So my question how do I get the other two running or how can I use at least /dev/input/js1?

Wine Version 1.5.23
ubuntu 12.10
kernel 3.5.0-23 generic
Simon of Aragon
Level 3
Level 3
Posts: 94
Joined: Sat Sep 08, 2012 3:56 pm

Re: Configure Joystick in Wine

Post by Simon of Aragon »

For all my DOS/Windows Apps I use a program called Joy2Key in Wine. Especially if they are not very compatible. Just make sure both Joy2Key and the wine app uses the same virtual drive.

For multiple JS settings, I would suggest looking into the individual Windows app settings. I think it is a case of your app detecting the extra sticks and less the fault of Wine. Not that Wine is perfect.

Also check the registry values; Each of the joystick's driver has a key under the path REGSTR_PATH_JOYCONFIG that has the form Msjstick.drv<xxxx>, where the xxxx is a four-digit number used to keep the key name unique. DirectX also contains Joystick support and if you installed DirectX you might want to look there as well.
iRy
Newbie
Newbie
Posts: 4
Joined: Wed Feb 06, 2013 6:05 pm

Re: Configure Joystick in Wine

Post by iRy »

Also check the registry values; Each of the joystick's driver has a key under the path REGSTR_PATH_JOYCONFIG that has the form Msjstick.drv<xxxx>, where the xxxx is a four-digit number used to keep the key name unique. DirectX also contains Joystick support and if you installed DirectX you might want to look there as well.
I checked and searched the Registry for "joy" but couldn't find any entries except \HKEY_CURRENT_USER\Software\Wine\DirectInput\Joysticks with no string in it.

I used also a windows app called joytester.exe. It find's the first Joystick (dev/input/js0) but the app says it doesnt have a REGKEY :?:
The other Joysticks are not found

I looked at joy2key but it didn't help either :(
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Configure Joystick in Wine

Post by lahmbi5678 »

Did you already try to configure your joysticks using the wine joystick applet? If not, open a terminal and type "wine control", then you should see a window, click on "game controller". I don't have any joysticks installed atm, so I can't tell you, if it will work, but if it doesn't, file a bug.
iRy
Newbie
Newbie
Posts: 4
Joined: Wed Feb 06, 2013 6:05 pm

Re: Configure Joystick in Wine

Post by iRy »

Yes also tried to confiugre the Joystick with the applet but it didn't find any joystick in this applet :(
iRy
Newbie
Newbie
Posts: 4
Joined: Wed Feb 06, 2013 6:05 pm

Re: Configure Joystick in Wine

Post by iRy »

I have to correct myself!
If i use "wine control" I can't see any joystick. If I go to my wine directory and choose control.exe I can't see anything either.
If I doubleclick explorer.exe and go to control.exe then I see all my joystick!
Anyone an idea??
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Configure Joystick in Wine

Post by lahmbi5678 »

The direct command line to start the joystick applet would be something like "wine control joy.cpl". It shouldn't depend on the directory and/or environment (command line vs. wine's explorer). If it does, it is clearly a bug.

Nevertheless, if you configured your joysticks in the applet, your wine games should see the joysticks, maybe some windows games just choose the first visible joystick.
Locked