https://bugs.winehq.org/show_bug.cgi?id=38816
Bug ID: 38816 Summary: XBOX controller not working on Brothers: A Tale of Two Sons Product: Wine Version: 1.7.45 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: winehq@iooioio.orion.uberspace.de Distribution: ---
It seems the game "Brothers: A Tale of Two Sons" does not support XBOX controllers on Wine. It's a real shame since it was designed specifically for a controller.
Tested on Wine 1.7.45.
https://bugs.winehq.org/show_bug.cgi?id=38816
Josh winehq@iooioio.orion.uberspace.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq@iooioio.orion.ubersp | |ace.de
https://bugs.winehq.org/show_bug.cgi?id=38816
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |hardware
--- Comment #1 from Ken Sharp imwellcushtymelike@gmail.com --- You have provided no console output at all. http://wiki.winehq.org/Bugs
Is there are demo available for download that suffers from the same issue?
https://bugs.winehq.org/show_bug.cgi?id=38816
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mikk150@gmail.com
--- Comment #2 from Austin English austinenglish@gmail.com --- *** Bug 39702 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=38816
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #3 from super_man@post.com --- Adding this info here
Mikk Tendermann 2015-11-29 16:41:47 CST
"certain games(like dirt 3, wolfenstein: the new order etc...) that does use xinput does not see game controllers connected. I think that this is really simple problem to address because with x360ce(https://github.com/x360ce/x360ce Opensource baby!) these games work really well without any modifications to the game.
You'll just need to implement x360ce's ini file editor for wine, and magically it works(yes even force feedback works wonders, only that does not(yet!) work is D-pad)"
https://bugs.winehq.org/show_bug.cgi?id=38816
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com, | |winetest@luukku.com
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com --- Windows users also affected: http://steamcommunity.com/app/225080/discussions/0/846963711056908201 https://steamcommunity.com/app/225080/discussions/0/620700960406194940
Please attach +dinput,+xinput log, read http://wiki.winehq.org/FAQ#get_log
https://bugs.winehq.org/show_bug.cgi?id=38816
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Keywords| |patch
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com --- Confirming in wine 1.9.17. A hacked implementation of xinput can be found at https://www.winehq.org/pipermail/wine-devel/2016-August/114547.html
https://bugs.winehq.org/show_bug.cgi?id=38816
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |xinput
https://bugs.winehq.org/show_bug.cgi?id=38816
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |H3g3m0n@gmail.com
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com --- *** Bug 25729 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=38816
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|XBOX controller not working |Multiple games require |on Brothers: A Tale of Two |XInput gamepad support |Sons |(Brothers: A Tale of Two | |Sons, Broforce, Dead Space)
https://bugs.winehq.org/show_bug.cgi?id=38816
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wberrier@gmail.com
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com --- *** Bug 41813 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=38816
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Multiple games require |Multiple games require |XInput gamepad support |XInput gamepad support |(Brothers: A Tale of Two |(Brothers: A Tale of Two |Sons, Broforce, Dead Space) |Sons, Broforce, Dead Space, | |Lego Star Wars Complete | |Saga)
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #8 from Wade Berrier wberrier@gmail.com --- It turns out that many of the other Lego games also have the same issue. It works pretty well using "antimicro" to simulate keyboard events, but the game often gives in-game keyboard tips, and it's not always easy to remember which keyboard key is mapped to which controller button.
I'm new to the wine gaming scene, so this is probably already widely known, but here's some information that may useful for others that run into this bug.
Updates on native xinput in wine:
http://boilingsteam.com/upcoming-native-xinput-support-in-wine/
Hopefully we'll have native xinput support in a year or so.
Until then, the ambitious can patch and build steam with the aforementioned patch reference, or here's a solution that may be easier to set up:
LD preload library to add xinput support:
https://github.com/KoKuToru/koku-xinput-wine
with some help listed here:
https://www.reddit.com/r/RocketLeague/comments/3tknvf/how_to_get_your_contro...
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #9 from Wade Berrier wberrier@gmail.com --- I tried koku-xinput-wine but Lego Star Wars failed to run (game would crash during startup).
Then I tried the xinput patch listed here:
https://github.com/00cpxxx/wine-xinput
but no button events are seen by the game when configuring the controller. (It accepts a button when auto choosing a device, but once you go to set up the keybindings, it never gets an event).
I tried both the "js" and "event" setup.
This is with xbox one controllers on fedora 24.
Attached is the xinput/dinput log.
Any suggestions?
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #10 from Wade Berrier wberrier@gmail.com --- Created attachment 56309 --> https://bugs.winehq.org/attachment.cgi?id=56309 lego star wars with patched xinput log
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #11 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Wade Berrier from comment #10)
Created attachment 56309 [details] lego star wars with patched xinput log
Thanks for your interest in my patch, but third party patches should not be discussed here, you can open a bug into the github page of the patch.
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #12 from Wade Berrier wberrier@gmail.com --- Submitted issue here:
https://github.com/00cpxxx/wine-xinput/issues/4
https://bugs.winehq.org/show_bug.cgi?id=38816
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |00cpxxx@gmail.com
--- Comment #13 from Bruno Jesus 00cpxxx@gmail.com --- Since I have a fairly well tested implementation for around 8 months now [1] I'm taking this bug to myself. I'll rebase my work over Aric's driver and this should be working somewhere this year if everything is fine in the driver side too.
[1] https://github.com/00cpxxx/wine-xinput
https://bugs.winehq.org/show_bug.cgi?id=38816
fjfrackiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz@gmail.com
--- Comment #14 from fjfrackiewicz@gmail.com --- I've noticed that a lot of Unity3d games will not even recognize an Xbox360 controller at all. No terminal output about the controller or anything and that's with and without workarounds.
The games in question are:
Necropolis Brutal Edition
Hollow Knight
https://bugs.winehq.org/show_bug.cgi?id=38816
Thomas Kowaliczek linuxdonald@posteo.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |linuxdonald@posteo.de
https://bugs.winehq.org/show_bug.cgi?id=38816
BieHDC byi5000@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |byi5000@gmail.com
--- Comment #15 from BieHDC byi5000@gmail.com --- (In reply to fjfrackiewicz from comment #14)
I've noticed that a lot of Unity3d games will not even recognize an Xbox360 controller at all. No terminal output about the controller or anything and that's with and without workarounds.
The games in question are:
Necropolis Brutal Edition
Hollow Knight
add GTA 5 to the list
https://bugs.winehq.org/show_bug.cgi?id=38816
Omar Pakker wine@opakker.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine@opakker.nl
https://bugs.winehq.org/show_bug.cgi?id=38816
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=38816
Toni eldrad@autistici.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eldrad@autistici.org
--- Comment #16 from Toni eldrad@autistici.org --- This bug should be fixed by Aric Steward sdl xinput support that landed post 3.0. https://source.winehq.org/git/wine.git/commit/f8c0228dc2680f8982b17b606145d0...
Tested it in a few games at least with xbox controller works fine.
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #17 from Toni eldrad@autistici.org --- Btw, for the record: Some games may have problems when they also detect the gamepad through dinput, workaround is to disable all gamepads from 'wine control' and let the new xinput support work alone.
I believe this is solved in koku-xinput by: https://github.com/KoKuToru/koku-xinput-wine/blob/master/device.cpp, but I might be wrong.
https://bugs.winehq.org/show_bug.cgi?id=38816
James Le Cuirot chewi@gentoo.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |chewi@gentoo.org
--- Comment #18 from James Le Cuirot chewi@gentoo.org --- (In reply to Toni from comment #17)
Btw, for the record: Some games may have problems when they also detect the gamepad through dinput, workaround is to disable all gamepads from 'wine control' and let the new xinput support work alone.
I've tried Sonic All Stars Racing Transformed, which is known to use the DInput method, under 3.5 and it still doesn't work. It appears to use XInput and the menus work but I am unable to accelerate. If I disable all the gamepads as you suggest then it doesn't detect one at all.
https://bugs.winehq.org/show_bug.cgi?id=38816
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #19 from Toni eldrad@autistici.org --- (In reply to James Le Cuirot from comment #18)
I've tried Sonic All Stars Racing Transformed, which is known to use the DInput method, under 3.5 and it still doesn't work. It appears to use XInput and the menus work but I am unable to accelerate. If I disable all the gamepads as you suggest then it doesn't detect one at all.
Haven't tried that game, but you should check that your wine version was built with sdl support, or that it's available in your system, not sure exactly how it works but I'm aware the new support requires sdl, and for example playonlinux builds don't have the support.
I have tested both brothers (ue game) and broforce (unity game) with wine 3.5 (lutris build from https://lutris.net/files/runners/wine-3.5-x86_64.tar.gz), and both work fine with xinput support, also dinput doesn't seem to interfere in that case, anyways I disabled the gamepad (xbox 360 wireless) from "wine control" and xinput support would still work out of the box.
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #20 from James Le Cuirot chewi@gentoo.org --- (In reply to Toni from comment #19)
(In reply to James Le Cuirot from comment #18)
I've tried Sonic All Stars Racing Transformed, which is known to use the DInput method, under 3.5 and it still doesn't work. It appears to use XInput and the menus work but I am unable to accelerate. If I disable all the gamepads as you suggest then it doesn't detect one at all.
Haven't tried that game, but you should check that your wine version was built with sdl support, or that it's available in your system, not sure exactly how it works but I'm aware the new support requires sdl, and for example playonlinux builds don't have the support.
I'm on Gentoo so I'm building Wine from source. The package hasn't been updated for this feature yet but it is enabled by default anyhow and I can see it picking up SDL2 during configure. I have tried XInputTest.exe, which works just fine so plain XInput is working.
I should add that koku-xinput-wine did get this game working at one point except that it seemed like I was unable to get the maximum acceleration. Maybe it was my imagination but I would always do much better when playing with the keyboard! Hopefully this issue will go away when it starts working under Wine properly. With the recent changes, it is no longer possible to build koku-xinput-wine.
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #21 from Toni eldrad@autistici.org --- About koku-xinput i'm still using a version I compiled some time ago (pre wine 3.0) and still works on any wine version.
About your game, it may be related to 64/32 bit libraries or wine, otherwise can't be sure why it's not working but might be worth investigating more.
Anyways since this bug seems to be about generic xinput support it seems present at least for some of the games on the title, and your issue might be something more specific, may be worth it to open a new issue and attach some debug logs.
https://bugs.winehq.org/show_bug.cgi?id=38816
Aric Stewart aric@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aric@codeweavers.com
--- Comment #22 from Aric Stewart aric@codeweavers.com --- A beginning implementation of XInput built on top of the HID work was pushed in Feb 2018. It would be interesting to know if these applications work now with Wine without koku-xinput.
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #23 from Toni eldrad@autistici.org --- I have tested brothers and broforce and they work with just wine, being unreal engine and unity games I'm sure many others are working.
Also got dmc working (custom engine) as well and that was a boon since koku was conflicting with dotnet or something and couldn't get it to work until new wine support landed.
https://bugs.winehq.org/show_bug.cgi?id=38816
Kai Krakow kai@kaishome.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kai@kaishome.de
--- Comment #24 from Kai Krakow kai@kaishome.de --- I can also confirm that the SDL push from Feb 2018 fixed all controller issues for me after I removed work-arounds like koku-xinput or x360ce. I also worked with the xpadneo project to get proper support including force-feedback and dpad for my Xbox One S controller. The project has some notes on fixing Wine/SDL behavior, too. So it may be of interest even without using xpadneo as a driver.
Even games that didn't work with koku-xinput (some crashed/froze, some didn't recognize the controller) now work flawlessly: Witcher 3, Kingdoms of Amalur, Wolfenstein New Order, many more...
Thus, I think this can be closed now? Maybe Wine should first include some documentation around SDL and controllers, and the problems of using work-arounds like koku-xinput/x360ce/... now with SDL support in place.
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #25 from James Le Cuirot chewi@gentoo.org --- As I keep saying, Sonic ART still doesn't work properly, at least as of 3.5 and I'm not aware of anything changing in this space since then. Most XInput games work now but this one is different. Please don't close this until this has been verified as working.
https://bugs.winehq.org/show_bug.cgi?id=38816
--- Comment #26 from Toni tonix64@inventati.org --- (In reply to James Le Cuirot from comment #25)
As I keep saying, Sonic ART still doesn't work properly, at least as of 3.5 and I'm not aware of anything changing in this space since then. Most XInput games work now but this one is different. Please don't close this until this has been verified as working.
The Sonic ART issue sounds like more specific thing so it would be worth it to file a separate bug on current wine for that with specific logs and so on.
https://bugs.winehq.org/show_bug.cgi?id=38816
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #27 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to Toni from comment #26)
(In reply to James Le Cuirot from comment #25)
As I keep saying, Sonic ART still doesn't work properly, at least as of 3.5 and I'm not aware of anything changing in this space since then. Most XInput games work now but this one is different. Please don't close this until this has been verified as working.
The Sonic ART issue sounds like more specific thing so it would be worth it to file a separate bug on current wine for that with specific logs and so on.
Agreed. Let's RESOLVE this bug and please open new, separate bugs for any game that still doesn't work properly.
https://bugs.winehq.org/show_bug.cgi?id=38816
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #28 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.10.