winmm: Reimplement joystick axis mapping.
commit8c985449c368c896fa2125090d71959ed6ea299e
authorZebediah Figura <zfigura@codeweavers.com>
Tue, 3 Oct 2023 21:29:04 +0000 (3 16:29 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 30 Nov 2023 09:08:09 +0000 (30 10:08 +0100)
tree92510fed6a2a3345f726dd694ff9680aecfd8b56
parent9d9d33571657369d598b6cf2986760608cd77c7e
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
dlls/winmm/joystick.c