[Bug 42434] New: Gamepad listed twice
https://bugs.winehq.org/show_bug.cgi?id=42434 Bug ID: 42434 Summary: Gamepad listed twice Product: Wine Version: 2.1 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dinput Assignee: wine-bugs(a)winehq.org Reporter: gabriel.corona(a)enst-bretagne.fr Distribution: --- Created attachment 57270 --> https://bugs.winehq.org/attachment.cgi?id=57270 Example program enumerating the same device twice. The gamepads seem to be listed twice by DiectInput. The problem manifests itself in Lego games (eg. "Lego the Hobbit" and "Lego Star Wars Episode 7"). The same gamepad is exposed twice and is thus used for both players: the same gamepad controls both players and it is not possible to play single player. A quick workaround is to use `rm /dev/input/js*`. AFAIU, the problem is that both the /dev/input/eventX and the /dev/input/jsX device of the gamepad are enumerated. You'll find in attachement a program which demonstrates the issue: Thrustmaster Dual Trigger 3-in-1 (event) ({B323044F-0000-0000-0000-504944564944}) -- Thrustmaster Dual Trigger 3-in-1 (event) ({9E573EDA-7734-11D2-8D4A-23903FB6BDF7}) Thrustmaster Dual Trigger 3-in-1 (js) ({B323044F-0000-0000-0000-504944564944}) -- Thrustmaster Dual Trigger 3-in-1 (js) ({9E573ED9-7734-0000-8D4A-23903FB6BDF7}) Using Wine 2.1 on Debian testing with Linux 4.9.0. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=42434 Gabriel Corona <gabriel.corona(a)enst-bretagne.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Debian --- Comment #1 from Gabriel Corona <gabriel.corona(a)enst-bretagne.fr> --- This happends since at least Wine 1.9.13: https://appdb.winehq.org/objectManager.php?sClass=version&iId=33880&iTesting... -- 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.
https://bugs.winehq.org/show_bug.cgi?id=42434 --- Comment #2 from Bruno Jesus <00cpxxx(a)gmail.com> --- This is by design. The linux kernel offers basically 2 ways to support joysticks: - An older interfaces that is available with devices at /dev/jsX - A newer interface that is available with devices at /dev/input/eventX The older interface works better in a few cases and the newer interface is generally better and adds support for force-feedback technology and more sophisticated devices. Wine offers both interfaces for each joystick, in order to disable one of them you can open wine control panel and click the joystick applet, or type in the console "wine control joy.cpl". This usually does not affect games unless the game attempts to auto-configure each joystick for each player, which is the case of the games you are testing. This is not common-sense, so should be documented somewhere in the wiki and I think we can retarget this bug for that. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=42434 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, hardware, source Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #3 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- Confirming per above. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=42434 Rémi Bernon <rbernon(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon(a)codeweavers.com --- Comment #4 from Rémi Bernon <rbernon(a)codeweavers.com> --- This should not be the case anymore. All the legacy backends have been removed and only one instance of each device should be exposed by the new HID backend. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=42434 Rémi Bernon <rbernon(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |adfee25b45af8160848f94fdb24 | |279d63d5f91f4 Status|NEW |RESOLVED --- Comment #5 from Rémi Bernon <rbernon(a)codeweavers.com> --- Marking as fixed, only one dinput joystick for each physical device is reported now. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=42434 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #6 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 6.20. -- 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 (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla