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
f9bb8f98
Commit
f9bb8f98
authored
Sep 30, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput8/tests: Add some HID joystick IDirectInputDevice8_SendDeviceData tests.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4ea75e55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
hid.c
dlls/dinput8/tests/hid.c
+23
-0
No files found.
dlls/dinput8/tests/hid.c
View file @
f9bb8f98
...
...
@@ -4658,6 +4658,21 @@ static void test_simple_joystick(void)
todo_wine
ok
(
hr
==
DIERR_UNSUPPORTED
,
"IDirectInputDevice8_SendForceFeedbackCommand returned %#x
\n
"
,
hr
);
objdata
[
0
].
dwOfs
=
0xd
;
objdata
[
0
].
dwData
=
0x80
;
res
=
1
;
hr
=
IDirectInputDevice8_SendDeviceData
(
device
,
sizeof
(
DIDEVICEOBJECTDATA
),
objdata
,
&
res
,
0xdeadbeef
);
todo_wine
ok
(
hr
==
DIERR_INVALIDPARAM
,
"IDirectInputDevice8_SendDeviceData returned %#x
\n
"
,
hr
);
res
=
1
;
hr
=
IDirectInputDevice8_SendDeviceData
(
device
,
sizeof
(
DIDEVICEOBJECTDATA
),
objdata
,
&
res
,
1
/*DISDD_CONTINUE*/
);
todo_wine
ok
(
hr
==
DIERR_INVALIDPARAM
,
"IDirectInputDevice8_SendDeviceData returned %#x
\n
"
,
hr
);
res
=
1
;
hr
=
IDirectInputDevice8_SendDeviceData
(
device
,
sizeof
(
DIDEVICEOBJECTDATA
),
objdata
,
&
res
,
0
);
todo_wine
ok
(
hr
==
DIERR_INVALIDPARAM
,
"IDirectInputDevice8_SendDeviceData returned %#x
\n
"
,
hr
);
hr
=
IDirectInputDevice8_Unacquire
(
device
);
ok
(
hr
==
DI_OK
,
"IDirectInputDevice8_Unacquire returned: %#x
\n
"
,
hr
);
...
...
@@ -5518,6 +5533,7 @@ static void test_force_feedback_joystick( void )
},
};
WCHAR
cwd
[
MAX_PATH
],
tempdir
[
MAX_PATH
];
DIDEVICEOBJECTDATA
objdata
=
{
0
};
DIDEVICEINSTANCEW
devinst
=
{
0
};
DIEFFECTINFOW
effectinfo
=
{
0
};
IDirectInputDevice8W
*
device
;
...
...
@@ -5737,6 +5753,13 @@ static void test_force_feedback_joystick( void )
todo_wine
ok
(
hr
==
HIDP_STATUS_USAGE_NOT_FOUND
,
"IDirectInputDevice8_SendForceFeedbackCommand returned %#x
\n
"
,
hr
);
objdata
.
dwOfs
=
0x16
;
objdata
.
dwData
=
0x80
;
res
=
1
;
hr
=
IDirectInputDevice8_SendDeviceData
(
device
,
sizeof
(
DIDEVICEOBJECTDATA
),
&
objdata
,
&
res
,
0
);
todo_wine
ok
(
hr
==
DIERR_INVALIDPARAM
,
"IDirectInputDevice8_SendDeviceData returned %#x
\n
"
,
hr
);
set_hid_expect
(
file
,
&
expect_dc_reset
,
sizeof
(
expect_dc_reset
)
);
hr
=
IDirectInputDevice8_Unacquire
(
device
);
ok
(
hr
==
DI_OK
,
"IDirectInputDevice8_Unacquire returned: %#x
\n
"
,
hr
);
...
...
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