Ivo Ivanov : winebus.sys: Scale the force feedback gain value to the Linux FF_GAIN range.
Alexandre Julliard
julliard at winehq.org
Thu Dec 9 15:34:29 CST 2021
Module: wine
Branch: master
Commit: bc36b50c070bafa9c17a3406d248e3720580c697
URL: https://source.winehq.org/git/wine.git/?a=commit;h=bc36b50c070bafa9c17a3406d248e3720580c697
Author: Ivo Ivanov <logos128 at gmail.com>
Date: Thu Dec 9 14:44:11 2021 +0100
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 at gmail.com>
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winebus.sys/bus_udev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winebus.sys/bus_udev.c b/dlls/winebus.sys/bus_udev.c
index 53dca8fce56..56260f9ed61 100644
--- a/dlls/winebus.sys/bus_udev.c
+++ b/dlls/winebus.sys/bus_udev.c
@@ -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);
More information about the wine-cvs
mailing list