winebus.sys: Use an unsigned 16bit range for saturation and deadband values.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51922
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-12-09 14:44:14 +01:00 committed by Alexandre Julliard
parent 1cab62f1a0
commit 4b1f9daad5
1 changed files with 1 additions and 1 deletions

View File

@ -641,7 +641,7 @@ static BOOL hid_descriptor_add_set_condition(struct unix_device *iface)
USAGE(1, PID_USAGE_NEGATIVE_SATURATION), USAGE(1, PID_USAGE_NEGATIVE_SATURATION),
USAGE(1, PID_USAGE_DEAD_BAND), USAGE(1, PID_USAGE_DEAD_BAND),
LOGICAL_MINIMUM(1, 0), LOGICAL_MINIMUM(1, 0),
LOGICAL_MAXIMUM(2, 0x7fff), LOGICAL_MAXIMUM(4, 0xffff),
PHYSICAL_MINIMUM(1, 0), PHYSICAL_MINIMUM(1, 0),
PHYSICAL_MAXIMUM(2, +10000), PHYSICAL_MAXIMUM(2, +10000),
REPORT_SIZE(1, 16), REPORT_SIZE(1, 16),