Controller configuration doesn't work for Oddworld: Soulstorm with PS5 DualSense
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?
Does this occur with upstream wine-staging/Proton?
You can check with proton by copying dist to lutris/runners
- Upstream wine-staging: This is what's installed by my distro (Fedora 34), and I tried to set Lutris to use that but it was stuck forever at updating my wine prefix. How do I get it to work?
- Proton: I tried to add the game's executable as a non-steam game to Steam (enabled the compatibility option to run with Proton) and it worked fine there. I didn't try to run Proton from Lutris because I read on the Internet this is discouraged.