On Mon, Jan 8, 2024 at 2:58 AM Rémi Bernon rbernon@codeweavers.com wrote:
Interesting, thanks for that investigation. I think we can do the same in dinput, and send DISFFC_STOPALL when auto-centering is off.
Then, in winebus.sys, and depending on the backend -in evdev, but maybe also SDL unless it has another better way for doing it- we could implement PID_USAGE_DC_DEVICE_RESET in a way that it adds an implicit spring effect when supported.
In retrospect, it makes sense that the reset state has a spring effect playing.
Without a default spring effect playing on startup/reset, it wouldn't be usable as a regular HID joystick on systems that don't have PID support.
Are there actually devices that don't reset to a spring effect being played then?