mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 07:15:09 +00:00
joy.cpl: Acquire the device before starting effect.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4ce7ae4af1
commit
06c824c02a
|
@ -726,6 +726,9 @@ static void ff_handle_effectchange(HWND hwnd, struct Joystick *joy)
|
||||||
if (sel < 0) return;
|
if (sel < 0) return;
|
||||||
|
|
||||||
joy->chosen_effect = sel;
|
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)
|
static DWORD WINAPI ff_input_thread(void *param)
|
||||||
|
|
Loading…
Reference in a new issue