 |
|
| Computers Forum Index » Computer - Emulators (MS Windows - Wine) » Joystick not recognized in wine |
|
Page 1 of 1 |
|
| Author |
Message |
| Mathieu SCHROETER |
Posted: Wed Jan 04, 2006 10:26 pm |
|
|
|
Guest
|
Hello,
Happy new year!
I have a problem with my joystick in Wine. It is the Sidewinder 3D Pro
and it is good recognized in /dev/input/js0.
gameport,sidewinder,joydev are loaded for it (gameport on soundblaster live)
But in wine, the games don't see this joystick.
And in the registry, there is no entry for dinput in HKCU/software/wine/ ?!?
I use the 0.9.4 version from this repository : "deb
http://wine.sourceforge.net/apt/ binary/" on my Debian SID.
With the older versions <0.9, my joystick was never recognized too
I cannot what make.
Thanks you for your help.
Regards,
Mathieu SCHROETER |
|
|
| Back to top |
|
|
|
| Daniel Skorka |
Posted: Thu Jan 05, 2006 9:12 am |
|
|
|
Guest
|
Mathieu SCHROETER <skywalker13@g_o_c_l_a_n.fr.st> wrote:
Quote: I have a problem with my joystick in Wine. It is the Sidewinder 3D Pro
and it is good recognized in /dev/input/js0.
gameport,sidewinder,joydev are loaded for it (gameport on soundblaster live)
But in wine, the games don't see this joystick.
Appearantly, wine uses /dev/js0. Just make a symbolic link.
Daniel |
|
|
| Back to top |
|
|
|
| Mathieu SCHROETER |
Posted: Thu Jan 05, 2006 3:32 pm |
|
|
|
Guest
|
Daniel Skorka a écrit :
Quote: Mathieu SCHROETER <skywalker13@g_o_c_l_a_n.fr.st> wrote:
I have a problem with my joystick in Wine. It is the Sidewinder 3D Pro
and it is good recognized in /dev/input/js0.
gameport,sidewinder,joydev are loaded for it (gameport on soundblaster live)
But in wine, the games don't see this joystick.
Appearantly, wine uses /dev/js0. Just make a symbolic link.
Daniel
Yes, it works (but throttle and rudder inversed and many buttons)
thanks you!
Mathieu |
|
|
| Back to top |
|
|
|
| Robert Reif |
Posted: Thu Jan 05, 2006 8:42 pm |
|
|
|
Guest
|
Mathieu SCHROETER wrote:
Quote: Daniel Skorka a écrit :
Mathieu SCHROETER <skywalker13@g_o_c_l_a_n.fr.st> wrote:
I have a problem with my joystick in Wine. It is the Sidewinder 3D
Pro and it is good recognized in /dev/input/js0.
gameport,sidewinder,joydev are loaded for it (gameport on
soundblaster live)
But in wine, the games don't see this joystick.
Appearantly, wine uses /dev/js0. Just make a symbolic link.
Daniel
Yes, it works (but throttle and rudder inversed and many buttons)
thanks you!
Mathieu
You can fix the axis and button mapping in the registry.
Create a new registry key with regedit:
HKCU\Software\Wine\DirectInput
and add a string value for your device.
"your device name" "X,Y,Z,Rx,Ry,Rz,Slider1,Slider2,POV1,POV2,POV3,POV4"
where "your device name" is what you get from /bin/jstest and
the axes list are the axes supported by your joystick.
for example, here is an entry for my joystick:
"Logitech Logitech Extreme 3D Pro" "X,Y,Rz,Slider1,POV1,POV2" |
|
|
| Back to top |
|
|
|
| Mathieu SCHROETER |
Posted: Thu Jan 05, 2006 9:21 pm |
|
|
|
Guest
|
Robert Reif a écrit :
Quote:
You can fix the axis and button mapping in the registry.
Create a new registry key with regedit:
HKCU\Software\Wine\DirectInput
and add a string value for your device.
"your device name" "X,Y,Z,Rx,Ry,Rz,Slider1,Slider2,POV1,POV2,POV3,POV4"
where "your device name" is what you get from /bin/jstest and
the axes list are the axes supported by your joystick.
for example, here is an entry for my joystick:
"Logitech Logitech Extreme 3D Pro" "X,Y,Rz,Slider1,POV1,POV2"
Hi,
with jstest :
# jstest /dev/js0
Driver version is 2.1.0.
Joystick (Microsoft SideWinder 3D Pro) has 6 axes (X, Y, Rz, Throttle,
Hat0X, Hat0Y)
and 9 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, BaseBtn, BaseBtn2,
BaseBtn3, BaseBtn4, ?).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 2: 440 3:-32767 4: 0 5: 0
Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off
And in the registry in HKCU\Software\Wine\DirectInput\ :
"Microsoft SideWinder 3D Pro" "X,Y,Rz,Throttle,Hat0X,Hat0Y"
But in the game, the axis are always inversed.
No change.
Mathieu |
|
|
| Back to top |
|
|
|
| Robert Reif |
Posted: Thu Jan 05, 2006 10:06 pm |
|
|
|
Guest
|
Mathieu SCHROETER wrote:
Quote: Robert Reif a écrit :
You can fix the axis and button mapping in the registry.
Create a new registry key with regedit:
HKCU\Software\Wine\DirectInput
and add a string value for your device.
"your device name" "X,Y,Z,Rx,Ry,Rz,Slider1,Slider2,POV1,POV2,POV3,POV4"
where "your device name" is what you get from /bin/jstest and
the axes list are the axes supported by your joystick.
for example, here is an entry for my joystick:
"Logitech Logitech Extreme 3D Pro" "X,Y,Rz,Slider1,POV1,POV2"
Hi,
with jstest :
# jstest /dev/js0
Driver version is 2.1.0.
Joystick (Microsoft SideWinder 3D Pro) has 6 axes (X, Y, Rz, Throttle,
Hat0X, Hat0Y)
and 9 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, BaseBtn, BaseBtn2,
BaseBtn3, BaseBtn4, ?).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 2: 440 3:-32767 4: 0 5: 0
Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off
And in the registry in HKCU\Software\Wine\DirectInput\ :
"Microsoft SideWinder 3D Pro" "X,Y,Rz,Throttle,Hat0X,Hat0Y"
But in the game, the axis are always inversed.
No change.
Mathieu
Set you registry to this:
"Microsoft SideWinder 3D Pro" "X,Y,Rz,Slider1,POV1,POV2"
Run your program with:
WINEDEBUG=+dinput wine yourprogram.exe
and look for warnings.
This all assumens you are using the joystick_linux driver.
All this will not work with the joystick_linuxinput driver.
There is a joystick test in wine:
cd wine/dlls/dinput/tests
WINETESTINTERACTIVE=1 wine dinput_test.exe.so joystick
This should show you what is going on.
You can also run it as:
WINEDEBUG=+dinput WINETESTINTERACTIVE=1 wine dinput_test.exe.so joystick
to really see what is going on. |
|
|
| Back to top |
|
|
|
| Robert Reif |
Posted: Fri Jan 06, 2006 3:05 am |
|
|
|
Guest
|
Mathieu SCHROETER wrote:
Quote: Robert Reif a écrit :
All this will not work with the joystick_linuxinput driver.
fixme:dinput:joydev_have found a joystick at /dev/input/event3!
There are two wine dinput joystick drivers (old and new
linux joystick apis) and the one that is being used (new)
doesn't support axis and button remapping.
I don't know how you can force wine to use the other driver
for the older linux joystick interface. |
|
|
| Back to top |
|
|
|
| Mathieu SCHROETER |
Posted: Fri Jan 06, 2006 7:29 pm |
|
|
|
Guest
|
Robert Reif a écrit :
Quote: Mathieu SCHROETER wrote:
Robert Reif a écrit :
All this will not work with the joystick_linuxinput driver.
fixme:dinput:joydev_have found a joystick at /dev/input/event3!
There are two wine dinput joystick drivers (old and new
linux joystick apis) and the one that is being used (new)
doesn't support axis and button remapping.
I don't know how you can force wine to use the other driver
for the older linux joystick interface.
Okay, thanks you for your help.
Too bad but not so significant, it is an old joystick. |
|
|
| Back to top |
|
|
|
|
|
All times are GMT
The time now is Tue Feb 09, 2010 3:35 pm
|
|