Module: wine
Branch: master
Commit: 8c985449c368c896fa2125090d71959ed6ea299e
URL: https://gitlab.winehq.org/wine/wine/-/commit/8c985449c368c896fa2125090d7195…
Author: Zebediah Figura <zfigura(a)codeweavers.com>
Date: Tue Oct 3 16:29:04 2023 -0500
winmm: Reimplement joystick axis mapping.
This should more closely match the algorithm used by native, discovered through
extensive manual testing.
This does not include any automated tests, both because I could not get winmm to
recognize a second plugged joystick, and (as I eventually discovered while
testing) the number of tests that would be necessary to conclusively prove this
algorithm turned out to be impractical.
---
dlls/dinput/tests/joystick8.c | 16 ++--
dlls/winmm/joystick.c | 203 +++++++++++++++++++++++++++---------------
2 files changed, 140 insertions(+), 79 deletions(-)