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
37025bda
Commit
37025bda
authored
Feb 11, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Feb 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joy.cpl: Process messages while waiting for the input threads.
Instead of interrupting the wait on any message.
parent
39dc9d09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
dinput.c
dlls/joy.cpl/dinput.c
+10
-1
xinput.c
dlls/joy.cpl/xinput.c
+10
-1
No files found.
dlls/joy.cpl/dinput.c
View file @
37025bda
...
@@ -792,7 +792,16 @@ INT_PTR CALLBACK test_di_dialog_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM
...
@@ -792,7 +792,16 @@ INT_PTR CALLBACK test_di_dialog_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM
case
PSN_RESET
:
case
PSN_RESET
:
case
PSN_KILLACTIVE
:
case
PSN_KILLACTIVE
:
SetEvent
(
thread_stop
);
SetEvent
(
thread_stop
);
MsgWaitForMultipleObjects
(
1
,
&
thread
,
FALSE
,
INFINITE
,
0
);
/* wait for the input thread to stop, processing any WM_USER message from it */
while
(
MsgWaitForMultipleObjects
(
1
,
&
thread
,
FALSE
,
INFINITE
,
QS_ALLINPUT
)
==
1
)
{
MSG
msg
;
while
(
PeekMessageW
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
{
TranslateMessage
(
&
msg
);
DispatchMessageW
(
&
msg
);
}
}
CloseHandle
(
state_event
);
CloseHandle
(
state_event
);
CloseHandle
(
thread_stop
);
CloseHandle
(
thread_stop
);
CloseHandle
(
thread
);
CloseHandle
(
thread
);
...
...
dlls/joy.cpl/xinput.c
View file @
37025bda
...
@@ -428,7 +428,16 @@ extern INT_PTR CALLBACK test_xi_dialog_proc( HWND hwnd, UINT msg, WPARAM wparam,
...
@@ -428,7 +428,16 @@ extern INT_PTR CALLBACK test_xi_dialog_proc( HWND hwnd, UINT msg, WPARAM wparam,
case
PSN_RESET
:
case
PSN_RESET
:
case
PSN_KILLACTIVE
:
case
PSN_KILLACTIVE
:
SetEvent
(
thread_stop
);
SetEvent
(
thread_stop
);
MsgWaitForMultipleObjects
(
1
,
&
thread
,
FALSE
,
INFINITE
,
0
);
/* wait for the input thread to stop, processing any WM_USER message from it */
while
(
MsgWaitForMultipleObjects
(
1
,
&
thread
,
FALSE
,
INFINITE
,
QS_ALLINPUT
)
==
1
)
{
MSG
msg
;
while
(
PeekMessageW
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
{
TranslateMessage
(
&
msg
);
DispatchMessageW
(
&
msg
);
}
}
CloseHandle
(
thread_stop
);
CloseHandle
(
thread_stop
);
CloseHandle
(
thread
);
CloseHandle
(
thread
);
dialog_hwnd
=
0
;
dialog_hwnd
=
0
;
...
...
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