winebus.sys: Implement PID device gain for SDL devices.

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-11-17 11:51:54 +01:00 committed by Alexandre Julliard
parent 45986545f8
commit 3495bd4492
1 changed files with 6 additions and 2 deletions

View File

@ -482,9 +482,13 @@ static NTSTATUS sdl_device_physical_device_control(struct unix_device *iface, US
static NTSTATUS sdl_device_physical_device_set_gain(struct unix_device *iface, BYTE value)
{
FIXME("iface %p, value %#x stub!\n", iface, value);
struct sdl_device *impl = impl_from_unix_device(iface);
return STATUS_NOT_IMPLEMENTED;
TRACE("iface %p, value %#x.\n", iface, value);
pSDL_HapticSetGain(impl->sdl_haptic, value * 100 / 255);
return STATUS_SUCCESS;
}
static NTSTATUS sdl_device_physical_effect_control(struct unix_device *iface, BYTE index,