Rémi Bernon : joy.cpl: Acquire the device before starting effect.
Alexandre Julliard
julliard at winehq.org
Wed Oct 6 15:51:38 CDT 2021
Module: wine
Branch: master
Commit: 06c824c02a9b6917569e78677099c22048954d66
URL: https://source.winehq.org/git/wine.git/?a=commit;h=06c824c02a9b6917569e78677099c22048954d66
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Wed Oct 6 10:26:41 2021 +0200
joy.cpl: Acquire the device before starting effect.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/joy.cpl/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/joy.cpl/main.c b/dlls/joy.cpl/main.c
index 57c188a5df1..3c9949b7ef3 100644
--- a/dlls/joy.cpl/main.c
+++ b/dlls/joy.cpl/main.c
@@ -726,6 +726,9 @@ static void ff_handle_effectchange(HWND hwnd, struct Joystick *joy)
if (sel < 0) return;
joy->chosen_effect = sel;
+ IDirectInputDevice8_Unacquire(joy->device);
+ IDirectInputDevice8_SetCooperativeLevel(joy->device, GetAncestor(hwnd, GA_ROOT), DISCL_BACKGROUND|DISCL_EXCLUSIVE);
+ IDirectInputDevice8_Acquire(joy->device);
}
static DWORD WINAPI ff_input_thread(void *param)
More information about the wine-cvs
mailing list