Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
06c824c0
Commit
06c824c0
authored
Oct 06, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
4ce7ae4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
main.c
dlls/joy.cpl/main.c
+3
-0
No files found.
dlls/joy.cpl/main.c
View file @
06c824c0
...
@@ -726,6 +726,9 @@ static void ff_handle_effectchange(HWND hwnd, struct Joystick *joy)
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment