Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
03ad3ca1
Commit
03ad3ca1
authored
Aug 10, 2020
by
Rémi Bernon
Committed by
Alexandre Julliard
Aug 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput8/tests: Add DISCL_EXCLUSIVE / rawinput test.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1e7378d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
device.c
dlls/dinput8/tests/device.c
+20
-0
No files found.
dlls/dinput8/tests/device.c
View file @
03ad3ca1
...
...
@@ -712,6 +712,26 @@ static void test_mouse_keyboard(void)
todo_wine
ok
(
raw_devices_count
==
1
,
"Unexpected raw devices registered: %d
\n
"
,
raw_devices_count
);
IDirectInputDevice8_SetCooperativeLevel
(
di_mouse
,
hwnd
,
DISCL_FOREGROUND
|
DISCL_EXCLUSIVE
);
IDirectInputDevice8_SetCooperativeLevel
(
di_keyboard
,
hwnd
,
DISCL_FOREGROUND
|
DISCL_EXCLUSIVE
);
hr
=
IDirectInputDevice8_Acquire
(
di_keyboard
);
ok
(
SUCCEEDED
(
hr
),
"IDirectInputDevice8_Acquire failed: %08x
\n
"
,
hr
);
hr
=
IDirectInputDevice8_Acquire
(
di_mouse
);
ok
(
SUCCEEDED
(
hr
),
"IDirectInputDevice8_Acquire failed: %08x
\n
"
,
hr
);
raw_devices_count
=
ARRAY_SIZE
(
raw_devices
);
memset
(
raw_devices
,
0
,
sizeof
(
raw_devices
));
hr
=
GetRegisteredRawInputDevices
(
raw_devices
,
&
raw_devices_count
,
sizeof
(
RAWINPUTDEVICE
));
ok
(
hr
==
3
,
"GetRegisteredRawInputDevices returned %d, raw_devices_count: %d
\n
"
,
hr
,
raw_devices_count
);
todo_wine
ok
(
raw_devices
[
0
].
dwFlags
==
(
RIDEV_CAPTUREMOUSE
|
RIDEV_NOLEGACY
),
"Unexpected raw device flags: %x
\n
"
,
raw_devices
[
0
].
dwFlags
);
todo_wine
ok
(
raw_devices
[
2
].
dwFlags
==
(
RIDEV_NOHOTKEYS
|
RIDEV_NOLEGACY
),
"Unexpected raw device flags: %x
\n
"
,
raw_devices
[
1
].
dwFlags
);
hr
=
IDirectInputDevice8_Unacquire
(
di_keyboard
);
ok
(
SUCCEEDED
(
hr
),
"IDirectInputDevice8_Acquire failed: %08x
\n
"
,
hr
);
hr
=
IDirectInputDevice8_Unacquire
(
di_mouse
);
ok
(
SUCCEEDED
(
hr
),
"IDirectInputDevice8_Acquire failed: %08x
\n
"
,
hr
);
raw_devices_count
=
ARRAY_SIZE
(
raw_devices
);
hr
=
GetRegisteredRawInputDevices
(
raw_devices
,
&
raw_devices_count
,
sizeof
(
RAWINPUTDEVICE
));
todo_wine
...
...
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