winebus.sys: Scale the force feedback gain value to the Linux FF_GAIN range.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51922
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>
This commit is contained in:
Ivo Ivanov 2021-12-09 14:44:11 +01:00 committed by Alexandre Julliard
parent 6613e6bb79
commit bc36b50c07
1 changed files with 1 additions and 1 deletions

View File

@ -945,7 +945,7 @@ static NTSTATUS lnxev_device_physical_device_set_gain(struct unix_device *iface,
{
.type = EV_FF,
.code = FF_GAIN,
.value = percent,
.value = 0xffff * percent / 100,
};
TRACE("iface %p, percent %#x.\n", iface, percent);