Has anyone successfully remapped a joystick axis using the regedit keys under macOS?

Questions about Wine on macOS.
Locked
alfredozorrilla
Newbie
Newbie
Posts: 2
Joined: Fri Jun 07, 2024 2:16 pm

Has anyone successfully remapped a joystick axis using the regedit keys under macOS?

Post by alfredozorrilla »

Hi everyone.

I think I've read EVERYTHING available on the forums and around about how to remap a joystick axis that is properly working on macOS, but that maps incorrectly into a game (that doesn't support axis remapping in-game).

I have a Logitech G940, and the Y axis is being swapped with the X axis from the POV (coolie) hat.

I've spent hours rummaging through the Wine source code (mainly the DLLs related to DirectInput and winebus) trying to understand why it isn't picking up the configuration from the Wine Registry to no avail.

I'm citing below the info that should be working for the mapping, according to https://wiki.winehq.org/Useful_Registry_Keys.
+-DirectInput
| |
| |
| +->*<joystick name> = <axes mapping>
| | [This maps axes of joystick "joystick name". The "axes mapping" is
| | comma-separated list of "axis type"s - one for each joystick axis (hat-pov uses 2 axes).
| | "axis type" is one of: X, Y, Z, Rx, Ry, Rz, Slider1, Slider2, POV1, POV2, POV3, POV4.
| | To find the joystick name run
| | 'WINEDEBUG=+dinput wine game.exe 2>&1 | grep joydev_enum_device'
| | Example output: trace:dinput:joydev_enum_deviceW Enumerating the linux Joystick device: /dev/input/js0 (Logitech Logitech Dual Action)
| | Example registry entry: "Logitech Logitech Dual Action"="X,Y,Rz,Slider1,POV1". (two "Logitech"s not a typo)]
| |
I've validated that the device name is correct ("G940" in my case) from the +dinput channel.

I've even sifted through the TRACE debug level, but cannot find any clue of why it isn't picking up the config.

So I wanted to know: Is it working for anyone else on macOS?

It seems to be working for the Linux people, but I don't know about macOS.

Any info would be appreciated.

Cheers!
Locked