dinput: Add support for DIPROP_(PHYSICAL|LOGICAL)RANGE properties.
commitb793fb54573166f33d0304ec4b542a4b272ac357
authorIvo Ivanov <logos128@gmail.com>
Thu, 18 Nov 2021 08:53:19 +0000 (18 09:53 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 18 Nov 2021 10:12:00 +0000 (18 11:12 +0100)
treecb037939ed422252ed918afc8758fd88f8b56adc
parente8d961b5c74ba3a57f33af696ad38f3317ac0ab5
dinput: Add support for DIPROP_(PHYSICAL|LOGICAL)RANGE properties.

Fixes apps like WheelCheck, which rely on some of these properties
(DIPROP_PHYSICALRANGE) to correctly calculate the top center of the
wheel against their permitted range.

In particular the constant force test now works just like in Windows,
directing the wheel to the upper center and resisting any movement to
the left or right. Before that it would pull the steering wheel hard to
the left.

Signed-off-by: Ivo Ivanov <logos128@gmail.com>
Signed-off-by: RĂ©mi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/dinput/device.c
dlls/dinput/device_private.h
dlls/dinput/joystick_hid.c
dlls/dinput8/tests/hid.c