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:
parent
45986545f8
commit
3495bd4492
|
@ -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)
|
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,
|
static NTSTATUS sdl_device_physical_effect_control(struct unix_device *iface, BYTE index,
|
||||||
|
|
Loading…
Reference in New Issue