https://bugs.winehq.org/show_bug.cgi?id=35815
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com Resolution|--- |INVALID Status|STAGED |RESOLVED
--- Comment #17 from Rémi Bernon rbernon@codeweavers.com --- Wine now uses SDL by default for all the joystick and game controller device support.
SDL already has a quite extensive support for axes and button remapping, either through SDL_GAMECONTROLLERCONFIG environment variable or configuration files (there's also a community sourced database here https://github.com/gabomdq/SDL_GameControllerDB).
The old DInput remapping support has been removed, so this doesn't apply anymore and I'm going to mark this bug as invalid.
When SDL support has not been compiled in, Wine either acts as a pass-through to hidraw devices (or iohid on macOS), in which case I don't think it's possible to do any kind of mapping, or indeed still does some remapping from evdev to HID usages.
I opened a new bug to track some eventual change to make this evdev mapping customizable here: https://bugs.winehq.org/show_bug.cgi?id=51908.