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
d62ac319
Commit
d62ac319
authored
Dec 10, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Try harder to avoid spurious keyboard input.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2bd84420
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
keyboard.c
dlls/dinput/tests/keyboard.c
+3
-0
No files found.
dlls/dinput/tests/keyboard.c
View file @
d62ac319
...
...
@@ -411,6 +411,8 @@ static void test_dik_codes(IDirectInputA *dI, HWND hwnd, LANGID langid)
if
(
!
PeekMessageA
(
&
msg
,
hwnd
,
0
,
0
,
PM_REMOVE
))
{
U
(
in
).
ki
.
dwFlags
=
KEYEVENTF_KEYUP
;
SendInput
(
1
,
&
in
,
sizeof
(
in
));
win_skip
(
"failed to queue keyboard event
\n
"
);
break
;
}
...
...
@@ -471,6 +473,7 @@ static void keyboard_tests(DWORD version)
hwnd
=
CreateWindowA
(
"static"
,
"Title"
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
,
10
,
10
,
200
,
200
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"err: %d
\n
"
,
GetLastError
());
SetForegroundWindow
(
hwnd
);
if
(
hwnd
)
{
...
...
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