[Bug 20388] New: Wine only detected 4 axis.
http://bugs.winehq.org/show_bug.cgi?id=20388 Summary: Wine only detected 4 axis. Product: Wine Version: 1.1.31 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: cdahmedeh(a)hotmail.com Hello, I am currently using Wine 1.1.31 on Ubuntu Linux. I have noticed that since 1.1.27, Wine is only detecting 4 axis on my Playstation Gamepad. Versions 1.1.28 detected much more. It is possible that the new evdev joystick implemented in Wine 1.1.28 does not detect axis with name that is (null). For example, on my joystick, only the first four axis have names, so only four axis are detected in games. Let's take a look at the jstest output for my joystick : Joystick (PLAYSTATION(R)3 Controller) has 28 axes (X, Y, Z, Rz, (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null)) and 19 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6, BtnDead, BtnA, BtnB, BtnC, BtnX, BtnY, BtnZ). The axis remapping sounds like a good idea for games in Windows that support few axis, however, it does not work for (null) axis name. Maybe a system that will replace the (null) axis with numbers. Something like axis5, axis6, and so on. Thanks -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 Vitaliy Margolen <vitaliy(a)kievinfo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-dinput --- Comment #1 from Vitaliy Margolen <vitaliy(a)kievinfo.com> 2009-10-16 20:44:48 --- What do you mean Wine doesn't support more then 4 axis? Where do you see that? How does it manifest? Wine does not use any axis names from the system. Where are you getting those nulls from? How many axis is your gamepad really have? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 Dmitry Timoshkov <dmitry(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Wine only detected 4 axis. |Wine only detected 4 axis | |of a gamepad -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 --- Comment #2 from Ahmed El-Hajjar <cdahmedeh(a)hotmail.com> 2009-10-17 10:10:33 --- I'll use an example to make this more clear. For example, in Live for Speed, I would be able to use most of my axis on my joystick to play before 1.1.28. My joystick has 28 axis, and Wine would see about 9-10 which was sufficient. I needed to extra axis to use the triggers (they are analog) for throttle and brake). However, in later versions, only 4 axis are seen by the game. This bug also is seen in other games that use the joystick. With 4 axis, I can only use the thumbsticks. Also, the names of the axis are retrievable by using the command "jstest /dev/input/js0". -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 --- Comment #3 from Vitaliy Margolen <vitaliy(a)kievinfo.com> 2009-10-17 12:00:14 --- Remove your axis remapping registry entry and try again. If it still doesn't work, attach +dinput debug output of starting the game. Wine never supported more then 8 axes. Additional 8 axes are used for up-to 4 POVs (2 axes per POV). Again not sure what 9-10 you are talking about. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 Antony <sharky.dog(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sharky.dog(a)gmail.com --- Comment #4 from Antony <sharky.dog(a)gmail.com> 2009-11-02 07:22:02 --- I have the same problem. I have a standard Play Station joystick (6 axis) And i can only use 4 of them - it wouldn't be a problem if they were the axis of the two analog sticks, but i can use only the right one and the cross... thing. That's a big problem since i use both analog sticks. This is a new problem, i didn't have that problem in previous versions. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 --- Comment #5 from Vitaliy Margolen <vitaliy(a)kievinfo.com> 2009-11-02 08:00:58 --- I'm still waiting for +dinput log. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 --- Comment #6 from Antony <sharky.dog(a)gmail.com> 2009-11-02 08:20:27 --- Created an attachment (id=24516) --> (http://bugs.winehq.org/attachment.cgi?id=24516) Dinput from wine I don't know if i done it properly but... It's quite a log i closed the game asap. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 --- Comment #7 from Antony <sharky.dog(a)gmail.com> 2009-11-02 08:20:44 --- Here it is -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 --- Comment #8 from Vitaliy Margolen <vitaliy(a)kievinfo.com> 2009-11-02 08:38:54 --- For evdev I see it's reported as 6 axes: trace:dinput:find_joydevs ... with axis 0: cur=128, min=4, max=252, fuzz=0, flat=2 trace:dinput:find_joydevs ... with axis 1: cur=128, min=4, max=252, fuzz=0, flat=2 trace:dinput:find_joydevs ... with axis 3: cur=128, min=4, max=252, fuzz=0, flat=2 trace:dinput:find_joydevs ... with axis 4: cur=128, min=4, max=252, fuzz=0, flat=2 trace:dinput:find_joydevs ... with axis 16: cur=128, min=4, max=252, fuzz=0, flat=2 trace:dinput:find_joydevs ... with axis 17: cur=128, min=4, max=252, fuzz=0, flat=2 Where: axis 0: ABS_X axis 1: ABS_Y axis 3: ABS_RX axis 3: ABS_RY axis 16: ABS_HAT0X axis 17: ABS_HAT0Y So does joydev: trace:dinput:alloc_device axis_map[0] = 8 trace:dinput:alloc_device axis_map[1] = 8 trace:dinput:alloc_device axis_map[2] = 2 trace:dinput:alloc_device axis_map[3] = 3 trace:dinput:alloc_device axis_map[4] = 4 trace:dinput:alloc_device axis_map[5] = 5 trace:dinput:_dump_DIDEVCAPS dwAxes: 4 trace:dinput:_dump_DIDEVCAPS dwPOVs: 1 The only issue I see here is joydev maps first 2 axes as POV. While evdev driver maps 2 last axes as POV. But that's what your system (driver) says it should be mapped as. If that's not correct you can remap it within Wine. That's what axes remapping support is for. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 --- Comment #9 from Antony <sharky.dog(a)gmail.com> 2009-11-02 08:46:31 --- I remapped them with jscal - swapped the first two with the last two axes - that maybe the strange thing you are seeing. I don't know how to remap them with wine though. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 --- Comment #10 from Vitaliy Margolen <vitaliy(a)kievinfo.com> 2009-11-03 01:04:20 --- See DirectInput section here: http://wiki.winehq.org/UsefulRegistryKeys Default mapping for your controller looks like this: "PSX controller"="X,Y,Z,Rx,POV1" I still don't see any issues in what Wine reports. Or you trying to say you have a real 6 axes and no POVs? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 --- Comment #11 from Antony <sharky.dog(a)gmail.com> 2009-11-03 13:30:47 --- The gamepad is something like that http://www.supplierlist.com/photo_images/122772/PS2_joystickPS2_controllerPS... When you press the "Analog" button it switches on the two analog sticks - 2 axes for each of course and another 2 axes for the cross switch - in the left (it doesn't have sense though since this is made from 4 buttons, nothing analog) The left stick isn't working in wine and it isn't detected in games. Outside wine (js_demo for example, or native linux game) it works fine. Also there isn't "DirectInput" in HKEY_CURRENT_USER/Wine -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 --- Comment #12 from Vitaliy Margolen <vitaliy(a)kievinfo.com> 2009-11-03 20:52:42 --- (In reply to comment #11)
The left stick isn't working in wine and it isn't detected in games. Of course it doesn't work, you screwed up mapping and be default your joystick is nor reporting X and Y axes.
there isn't "DirectInput" in HKEY_CURRENT_USER/Wine Make one.
-- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 --- Comment #13 from Antony <sharky.dog(a)gmail.com> 2009-11-04 10:05:33 --- Ok, i made the key, tried different things, none worked. I didn't messed the mappings - here is output from jstest ---------------------------------------------------------- jstest /dev/input/js0 Driver version is 2.1.0. Joystick (PSX controller) has 6 axes (Rx, Ry, X, Y, Hat0X, Hat0Y) and 12 buttons (BtnX, BtnY, BtnTL, BtnTR, BtnTR2, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR, ?, ?). ----------------------------------------------------------- - everything is working fine here - the axes are responding correctly Even if i remap them wine doesn't sense a difference, but in js_demo and jstest the axes are remapped as i want. ----------------------------------------------------------- js_demo Joystick test program. ~~~~~~~~~~~~~~~~~~~~~~ Joystick 0: "PSX controller" Joystick 1 not detected Joystick 2 not detected Joystick 3 not detected Joystick 4 not detected Joystick 5 not detected Joystick 6 not detected Joystick 7 not detected +--------------------JS.0----------------------+ | Btns Ax:0 Ax:1 Ax:2 Ax:3 Ax:4 Ax:5 | +----------------------------------------------+ ----------------------------------------------------------- - Same here - every axis is working as expected. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 --- Comment #14 from Antony <sharky.dog(a)gmail.com> 2009-11-04 10:14:39 --- Found something that works! "PSX controller"="X,Y,Z,Rx,Ry,Rz" Now the game shows 12 axes - every axis two times, but who cares, it works. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 Vitaliy Margolen <vitaliy(a)kievinfo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #15 from Vitaliy Margolen <vitaliy(a)kievinfo.com> 2009-11-04 19:30:58 --- As I thought - invalid. Or program confused by multiple joysticks. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20388 Vitaliy Margolen <vitaliy(a)kievinfo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #16 from Vitaliy Margolen <vitaliy(a)kievinfo.com> 2009-11-04 19:31:06 --- Closing. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org