https://bugs.winehq.org/show_bug.cgi?id=40658
--- Comment #16 from RĂ©mi Bernon rbernon@codeweavers.com --- Thanks, Wine is now using SDL library by default to access controllers and joysticks, so it's not possible to tell exactly which Linux subsystem it is using, but most likely evdev, if it is available.
If SDL support is disabled (through the registry) or not compiled in, Wine is using evdev directly instead.
Regarding the Y axis inversion, it would be awesome if you could provide a WINEDEBUG=+plugplay,+hid,+hidp,+hid_report,+dinput log, combined with the "evtest" output recorded at the same time, and pressing a few HAT switch direction.