https://bugs.winehq.org/show_bug.cgi?id=40658
--- Comment #23 from Paul geoff.pvgn1@gmail.com --- (In reply to RĂ©mi Bernon from comment #22)
I've sent https://source.winehq.org/patches/data/217348 and https://source.winehq.org/patches/data/217347 which should hopefully solve the two issues mentioned above.
The Y axis fix at least is quite obvious, I'm less sure about the missing RUDDER axis though, maybe it's something that isn't mapped in SDL.
You can also try by disabling SDL, so that Wine directly uses evdev. This can be done by setting the "Enable SDL" option to 0, as described in https://wiki.winehq.org/Useful_Registry_Keys, and if that still doesn't work, a log with the same WINEDEBUG options as above would be really helpful!
OK, I used the very same wine head for this round of tests. I noticed a few problems with this new SDL/event dependency choice of wine. In the past (wine 6.12, etc.) I could use the regedit instructions from:
https://wiki.winehq.org/Useful_Registry_Keys
"axes mapping" could reorganize the axes of the HOTAS 4 so I could once again use the rudder (the kernel driver for it isn't mature due to few people knowing how to get it out of the sony PS4 compatibility and into PC output, and the driver identifies more axes than it actually has, throwing other software off)
Using the instructions to enable/disable SDL, this particular registry key doesn't produce any change in axes.
Specifically, in the past, this would work, and now does not (yes in today's tests I changed the name of the device to reflect what wine identifies. This is from an older prefix): [Software\Wine\DirectInput] 1615525022 #time=1d716fc2425fc64 "Thrustmaster T.Flight Hotas 4 (event)"="X,Y,Z,-,-,Rx,-,Ry,POV1"
Further, once SDL is disabled in the registry, the input device name is reduced to an ambiguous "Thrustmaster" which would be a problem if there were more than one Thrustmaster device connected.
In each test with and without SDL, I sampled each axis, with the rudder axis the last.
One last thing, with SDL disabled, the HAT has correct directions.