Pathoschild / SMAPI

The modding API for Stardew Valley.
https://smapi.io/
GNU Lesser General Public License v3.0
1.81k stars 259 forks source link

(Windows Only Issue) Launching with SMAPI ignores my DualShock 4 Custom Config in Steam. #880

Closed CyberRacc closed 1 year ago

CyberRacc commented 1 year ago

Describe the bug Windows 11 only, problem does not occur on Linux, I play on both my main PC (Windows 11) and my Laptop (Manjaro Linux). I use Steam Input to configure my DualShock 4 controller, which works perfectly on the base game and on Linux with SMAPI, but not Windows with SMAPI. The game pretty much ignores my custom config when using SMAPI on Windows, always using the default controls instead which is not usable for me as I constantly change between playing on PC and on Switch so I need the config to work for consistency.

Yes I am launching through Steam with "StardewModdingAPI %command%" in the launch options, I am not using any external input application, DS4 Windows is the only one I use and it is closed.

To Reproduce

  1. Set custom configuration in Steam Input for DualShock 4, swap cross & circle, set share to screenshot, left touchpad to tasks, right touchpad to map.
  2. Start game, verify that the config is loaded, it is.
  3. Share still opens tasks, left touchpad does nothing, Cross and Circle are not swapped.

Log file https://smapi.io/log/d8b794fea909444d8272639f2d371f01

Screenshots grafik

My controller configuration in Steam, works only without SMAPI on WIndows, works with or without SMAPI on Linux. No idea what is happening.

Pathoschild commented 1 year ago

Hi! It seems Steam Input doesn't always handle multiple game windows correctly. Unfortunately that seems to be a limitation of Steam Input rather than an issue with SMAPI itself, and we haven't figured out why it works for some players but not others yet.

See SMAPI doesn't recognize controller (Steam only) in the troubleshooting guide for some suggested fixes. You already tried most of them, so there's just the last resort of using a third-party controller app left.

I'll close this ticket since it's not a specific development task for SMAPI itself, but feel free to join #making-mods on the Stardew Valley Discord if you'd like to discuss further. I'd love to find a solution or more info, since it affects a subset of other players too.