Sweden-Number/dlls/dinput
Ivo Ivanov 34b0b4accb dinput: Return DI_OK when HID joystick CreateEffect succeeds.
SetParameters returns DI_DOWNLOADSKIPPED if the device is not acquired
exclusively.

This fixes Assetto Corsa Competizione and Assetto Corsa not having FFB
due to calling CreateEffect before acquiring the device, which skips the
effect download and returns DI_DOWNLOADSKIPPED.

In particular, ACC tries twice to create the effect, and each time they
unacquire the device to turn off the autocenter, and then create the
effect while still in unacquired state, which in turn returns
DI_DOWNLOADSKIPPED, etc.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51922
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-15 19:54:17 +01:00
..
tests
Makefile.in dinput: Build with msvcrt. 2021-10-11 10:58:38 +02:00
ansi.c dinput: Rename IDirectInputDeviceImpl to struct dinput_device. 2021-10-27 22:40:49 +02:00
config.c dinput: Use msvcrt memory allocation functions. 2021-10-11 10:58:51 +02:00
data_formats.c
device.c dinput: Return DI_OK when HID joystick CreateEffect succeeds. 2021-11-15 19:54:17 +01:00
device_private.h dinput: Move device data format to struct dinput_device. 2021-10-29 12:29:58 +02:00
dinput.rc
dinput.spec
dinput_classes.idl
dinput_main.c dinput: Always call the device internal poll callback. 2021-11-08 10:28:17 +01:00
dinput_private.h dinput: Rename IDirectInputDeviceImpl to struct dinput_device. 2021-10-27 22:40:49 +02:00
joystick_hid.c dinput: Return DI_DOWNLOADSKIPPED from SetParameters. 2021-11-15 19:54:17 +01:00
keyboard.c dinput: Rename SysKeyboardImpl to struct keyboard. 2021-10-27 22:40:49 +02:00
mouse.c dinput: Move user data format to struct dinput_device. 2021-10-28 13:03:51 +02:00
resource.h
version.rc