lutris / wine

Repository containing source code for various Lutris Wine builds
Other
142 stars 23 forks source link

Controller configuration doesn't work for Oddworld: Soulstorm with PS5 DualSense #104

Open Venemo opened 3 years ago

Venemo commented 3 years ago

I have lutris-0.5.8.4-1.fc34.x86_64 and recently installed the Epic Games Store from Lutris's GUI. Inside the Epic Games Store I have Oddworld: Soulstorm. (Unfortunately this game is not available on Steam.)

I'm trying to play this game using a PS5 controller that is connected to my computer via Bluetooth.

With both wine versions lutris-6.13-3-x86_64 and lutris-6.14-x86_64 the controller doesn't work properly with Oddworld: Soulstorm, it feels as though some button is stuck. Lutris's "Autoconfigure joypads" setting is enabled (by default, I didn't change it).

After some googling I found a whacky environment variable that works around this issue. SDL_GAMECONTROLLERCONFIG needs to be set to the following value:

050000004c050000e60c000000810000,Sony DualSense ,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,

I'm not sure what the actual problem is but reporting it here in case it can be fixed. Perhaps the above environment variable could be used by default when this type of controller is detected?

tannisroot commented 3 years ago

Does this occur with upstream wine-staging/Proton?

tannisroot commented 3 years ago

You can check with proton by copying dist to lutris/runners

Venemo commented 3 years ago