Commit 3495bd44 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

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

parent 45986545
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment