You are not logged in.

#1 2014-10-25 04:42:56

timurkiyivinski
Member
Registered: 2013-03-07
Posts: 19

[SOLVED] Wine Applications & XBOX Controllers

Greetings, Arch community!

I have a Logitech F710 controller (capable of both XINPUT & DINPUT) and I have already configured it using xboxdrv (although it works just fine with xpad). Linux native games via Steam work just fine with the controller but I have yet to get it working with games on Wine. I'm using PlayOnLinux and have a 32 bit WINEPREFIX using Wine 1.7.4-CSMT running Windows 7.
I believe these are relevant overrides:

  • xinput1_1 (native)

  • xinput1_2 (native)

  • xinput1_3 (native)

  • xinput9_1_0 (native)

  • dinput (builtin, native)

  • dinput8 (builtin, native)

I have tried switching about overrides to no avail as well as tried using x360ce to configure. However, x360ce does not detect the controller when I set either dinput to (native) only. Using ditool (to detect input devices), I see the controller detected just fine in both XINPUT & DINPUT. The games I wish to have the controller working with are:

  • Grand Theft Auto IV

  • The Legend of Korra

Note: These games wotk just fine with mouse & keyboard but I would much prefer to be able to lay back and play them with a controller.

I'm willing to provide relevant output to get this working because after many tries, it still does not work. Thanks in advance.

Last edited by timurkiyivinski (2014-10-26 13:36:29)

Offline

#2 2014-10-25 11:27:07

helix
Member
Registered: 2013-02-17
Posts: 182

Re: [SOLVED] Wine Applications & XBOX Controllers

If your problem insists, you can still use a program like qjoypad or antimicro

Offline

#3 2014-10-25 12:58:07

timurkiyivinski
Member
Registered: 2013-03-07
Posts: 19

Re: [SOLVED] Wine Applications & XBOX Controllers

Those would be my last resort. I've been trying various options, even a new WINEPREFIX to get it working. GTA IV has always been problematic, even on Windows so I'm not too concerned about that. However, Legend of Korra is really controller optimized.

Offline

#4 2014-10-25 17:20:51

boghison
Member
Registered: 2014-10-25
Posts: 7

Re: [SOLVED] Wine Applications & XBOX Controllers

As a matter of fact, I'm also trying to play korra with my F310 (also capable of both XINPUT & DINPUT). Korra is utterly impossible to play with mouse and keyboard (it does warn about that lol).

Offline

#5 2014-10-25 17:23:05

boghison
Member
Registered: 2014-10-25
Posts: 7

Re: [SOLVED] Wine Applications & XBOX Controllers

Have you tried https://github.com/KoKuToru/koku-xinput-wine it does seem a little old though

Offline

#6 2014-10-26 04:50:59

timurkiyivinski
Member
Registered: 2013-03-07
Posts: 19

Re: [SOLVED] Wine Applications & XBOX Controllers

Yes, my friends are using controllers too but they have Windows based PCs, I prefer not to since gaming is the only use for Windows I (might) have use for. Wine is capable of XINPUT, GTA:SA works fine on Wine using both XINPUT & DINPUT. The problem seems to be with newer games that do not auto detect it, strangely enough although I wouldn't know where to start debugging the issue.

Offline

#7 2014-10-26 08:55:36

boghison
Member
Registered: 2014-10-25
Posts: 7

Re: [SOLVED] Wine Applications & XBOX Controllers

Well, at least wine runs it with no problem. I have enabled the xinput driver in wine, but Korra still doesn't detect it. Perhaps we should ask the wine devs?

Offline

#8 2014-10-26 09:02:48

timurkiyivinski
Member
Registered: 2013-03-07
Posts: 19

Re: [SOLVED] Wine Applications & XBOX Controllers

Looking here, there is a gamepad comment that says it allows all controllers to be used. I could not get it working previously but maybe you would have better luck than me? This might work with LOK as well.

Offline

#9 2014-10-26 10:48:51

boghison
Member
Registered: 2014-10-25
Posts: 7

Re: [SOLVED] Wine Applications & XBOX Controllers

So, that converts dinput to xinput as far as I understood. Wine should support xinput (it does have a dll for that). Anyway, I'm still looking for a XINPUT solution.

Offline

#10 2014-10-26 11:51:23

timurkiyivinski
Member
Registered: 2013-03-07
Posts: 19

Re: [SOLVED] Wine Applications & XBOX Controllers

Wine does keep both DINPUT & XINPUT as is, used ditool.exe to test in both modes. Just happens not to works with a few games, though.

Offline

#11 2014-10-26 12:41:09

boghison
Member
Registered: 2014-10-25
Posts: 7

Re: [SOLVED] Wine Applications & XBOX Controllers

Offline

#12 2014-10-26 13:12:34

timurkiyivinski
Member
Registered: 2013-03-07
Posts: 19

Re: [SOLVED] Wine Applications & XBOX Controllers

Yeah, I've tried that and it doesn't work. Are you using the Steam version of LOK? What Wine overrides are you using?

Offline

#13 2014-10-26 13:30:22

timurkiyivinski
Member
Registered: 2013-03-07
Posts: 19

Re: [SOLVED] Wine Applications & XBOX Controllers

Sorry for double post. Got it working. Should've just removed all overrides all this while. Shall just split games that require this into a different WINEPREFIX then.

Solution:

(Assuming you already have xboxdrv set up)

  1. Download everthing from here. (Some random link)

  2. Paste it into the same directory as the executable.

  3. With your controller running in XINPUT mode, as root run:

    xboxdrv --silent --detach-kernel-driver --trigger-as-button --ui-axismap x2=ABS_Z,y2=ABS_RZ --ui-buttonmap A=BTN_B,B=BTN_X,X=BTN_A,TR=BTN_THUMBL,TL=BTN_MODE,GUIDE=BTN_THUMBR
  4. Make sure your user has permissions to read the outputted events.

  5. Disable all XINPUT & DINPUT overried in wine by removing them.

After that, all works great. Thanks for the link!

Last edited by timurkiyivinski (2014-10-26 13:31:14)

Offline

#14 2014-10-26 13:34:40

boghison
Member
Registered: 2014-10-25
Posts: 7

Re: [SOLVED] Wine Applications & XBOX Controllers

LoK is still hard to play lol, can't get through the 3rd chapter.

Offline

#15 2014-10-26 13:37:19

timurkiyivinski
Member
Registered: 2013-03-07
Posts: 19

Re: [SOLVED] Wine Applications & XBOX Controllers

Managed to replay to Chapter 4 with mouse & keyboard, time to replay with controller! Cheers!

Offline

#16 2014-10-26 13:51:14

boghison
Member
Registered: 2014-10-25
Posts: 7

Re: [SOLVED] Wine Applications & XBOX Controllers

Easy or Normal? Anyway, I'm not much of a gamer person, what did I expect sad I don't really love the game (I'm a big fan of the series, I even watched Aang 3 times), they made it too difficult and too simple in the matter of fighting.

Offline

#17 2014-10-26 13:55:06

timurkiyivinski
Member
Registered: 2013-03-07
Posts: 19

Re: [SOLVED] Wine Applications & XBOX Controllers

Both! Normal seems a bit more fun, though. I love the series too but if you're not a gamer, keeping to casual will do. Shall mark here on out of topic haha!

Offline

Board footer

Powered by FluxBB