http://bugs.winehq.org/show_bug.cgi?id=10257
Summary: No response to xyz axis joystick movement. Product: Wine Version: 0.9.4. Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-directx-dinput AssignedTo: wine-bugs@winehq.org ReportedBy: bgoodwin91006@yahoo.com
Created an attachment (id=8885) --> (http://bugs.winehq.org/attachment.cgi?id=8885) brief notes and a dinput trace
After updating from wine version 0.9.42 to 0.9.46, the game; F/A-18 PSF no longer responds to joystick movement. I downloaded, built, and installed 0.9.47 and got the same failure. My joystick is a Microsoft Sidewinder attached via USB. It shows up as /dev/js0, /dev/input/js0, and /dev/input event3. Permissions are set to 655 (read/execute). The joystick buttons work correctly. jscal and jstest work correctly. The short trace (attached) indicates that wine recieved the stick movement correctly. The only thing in the trace that looked out of place was a message that the GUID of the joystick was invalid.
http://bugs.winehq.org/show_bug.cgi?id=10257
Bob Goodwin bgoodwin91006@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|0.9.4. |0.9.47.
http://bugs.winehq.org/show_bug.cgi?id=10257
--- Comment #1 from Austin English austinenglish@gmail.com 2007-10-31 12:50:54 --- Please run a regression test:
http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=10257
--- Comment #2 from Bob Goodwin bgoodwin91006@yahoo.com 2007-10-31 14:16:05 --- (In reply to comment #1)
Please run a regression test:
Sorry but I have a 56k modem. Downloading ~90MB is not an option for me. If there is any other approach that doesn't involve my modem bottleneck I will be happy to do it. I can typically successfully download up to about 20MB (overnight.) I would even be willing to pay the reasonable cost of creating and shipping me a CD with the repository files.
http://bugs.winehq.org/show_bug.cgi?id=10257
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|0.9.47. |0.9.46.
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2007-10-31 14:51:08 --- What does 'ls -la /dev/input/' say?
http://bugs.winehq.org/show_bug.cgi?id=10257
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #8885|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=10257
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |trivial
--- Comment #4 from Vitaliy Margolen vitaliy@kievinfo.com 2007-10-31 14:53:09 --- Are you sure you are using 0.9.47? What does 'wine --version' say? This bug was fixed in 0.9.47. Attach _complete_ WINEDEBUG=+dinput and not cut. Use gzip/bzip if too big to attach.
http://bugs.winehq.org/show_bug.cgi?id=10257
--- Comment #5 from Bob Goodwin bgoodwin91006@yahoo.com 2007-11-01 00:04:41 --- (In reply to comment #3)
What does 'ls -la /dev/input/' say?
drw-r-xr-x 2 root root 260 Oct 31 12:05 . drwxr-xr-x 12 root root 4620 Oct 31 20:34 .. crw-r-xr-x 1 root root 13, 64 Oct 31 12:04 event0 crw-r-xr-x 1 root root 13, 65 Oct 31 12:04 event1 crw-r-xr-x 1 root root 13, 66 Oct 31 12:04 event2 crw-r-xr-x 1 root root 13, 67 Oct 31 12:04 event3 crw-r-xr-x 1 root root 13, 68 Oct 31 12:04 event4 crw-r-xr-x 1 root root 13, 69 Oct 31 12:05 event5 crw-r-xr-x 1 root root 13, 70 Oct 31 12:05 event6 crw-r-xr-x 1 bob root 13, 0 Oct 31 12:04 js0 crw-r-xr-x 1 root root 13, 63 Oct 31 12:04 mice crw-r-xr-x 1 root root 13, 32 Oct 31 12:04 mouse0 crw-r-xr-x 1 root root 13, 33 Oct 31 12:04 mouse1
http://bugs.winehq.org/show_bug.cgi?id=10257
--- Comment #6 from Bob Goodwin bgoodwin91006@yahoo.com 2007-11-01 00:28:07 --- Created an attachment (id=8903) --> (http://bugs.winehq.org/attachment.cgi?id=8903) full trace with WINEDEBUG=+dinput
http://bugs.winehq.org/show_bug.cgi?id=10257
--- Comment #7 from Bob Goodwin bgoodwin91006@yahoo.com 2007-11-01 00:37:36 --- (In reply to comment #4)
Are you sure you are using 0.9.47? What does 'wine --version' say? This bug was fixed in 0.9.47. Attach _complete_ WINEDEBUG=+dinput and not cut. Use gzip/bzip if too big to attach.
wine --version wine-0.9.48
Sorry. I downloaded and built 0.9.48. My mistake. That's the one currently running and exhibits this behavior. I've attached a full trace. It includes a Z axis (throttle) move. Thanks for taking the time to look into this.
http://bugs.winehq.org/show_bug.cgi?id=10257
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |vitaliy@kievinfo.com Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #8 from Vitaliy Margolen vitaliy@kievinfo.com 2007-11-06 00:26:26 --- Ok I see what's going on:
trace:dinput:JoystickAImpl_SetProperty proprange(-127,127) obj=2 .... trace:dinput:JoystickAImpl_SetProperty deadzone(1000) obj=2 .... race:dinput:joystick_map_axis (-32767 32767) -> (-127 <1000> 127): val=-31417 ret=0
App sets -127..+127 ranges for all axis and 1000 for the dead zone. It appears Wine treats the dead zone wrong. MSDN says that dead zone range is from 0 to 10000. Where 0 means no dead zone. 5000 - 50% of the device range and 10000 equals full device range.
I'll have a fix for this in the next few days.
http://bugs.winehq.org/show_bug.cgi?id=10257
--- Comment #9 from Bob Goodwin bgoodwin91006@yahoo.com 2007-11-16 16:05:33 --- Is there any quick fix that just zeros out the effect of the deadzone ? I think The stick would still be reasonable usable. Thank you for the effort you have put into this problem.
http://bugs.winehq.org/show_bug.cgi?id=10257
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|trivial |minor
--- Comment #10 from Vitaliy Margolen vitaliy@kievinfo.com 2007-11-16 16:52:07 --- That is game itself sets the dead zone. With Wine you can only set it's initial value.
http://bugs.winehq.org/show_bug.cgi?id=10257
--- Comment #11 from Vitaliy Margolen vitaliy@kievinfo.com 2007-11-25 12:22:37 --- Patch sent: http://www.winehq.org/pipermail/wine-patches/2007-November/047162.html
http://bugs.winehq.org/show_bug.cgi?id=10257
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #12 from Vitaliy Margolen vitaliy@kievinfo.com 2007-11-26 08:30:10 --- Patch was committed. WIll be available in the next Wine release.
http://bugs.winehq.org/show_bug.cgi?id=10257
--- Comment #13 from Bob Goodwin bgoodwin91006@yahoo.com 2007-11-27 12:36:16 --- Patch worked perfectly. Thanks for your outstanding effort.
http://bugs.winehq.org/show_bug.cgi?id=10257
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Dan Kegel dank@kegel.com 2008-01-28 05:44:38 --- Closing all RESOLVED FIXED bugs older than four weeks.