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
d5a44e98
Commit
d5a44e98
authored
Nov 08, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput8/tests: Check setting DIPROP_AUTOCENTER on force-feedback joystick.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
62f5bbf3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
hid.c
dlls/dinput8/tests/hid.c
+7
-2
No files found.
dlls/dinput8/tests/hid.c
View file @
d5a44e98
...
@@ -7356,11 +7356,16 @@ static void test_force_feedback_joystick( void )
...
@@ -7356,11 +7356,16 @@ static void test_force_feedback_joystick( void )
hr
=
IDirectInputDevice8_SetCooperativeLevel
(
device
,
hwnd
,
DISCL_BACKGROUND
|
DISCL_NONEXCLUSIVE
);
hr
=
IDirectInputDevice8_SetCooperativeLevel
(
device
,
hwnd
,
DISCL_BACKGROUND
|
DISCL_NONEXCLUSIVE
);
ok
(
hr
==
DI_OK
,
"SetCooperativeLevel returned: %#x
\n
"
,
hr
);
ok
(
hr
==
DI_OK
,
"SetCooperativeLevel returned: %#x
\n
"
,
hr
);
prop_dword
.
diph
.
dwHow
=
DIPH_DEVICE
;
prop_dword
.
diph
.
dwObj
=
0
;
prop_dword
.
dwData
=
DIPROPAUTOCENTER_ON
;
hr
=
IDirectInputDevice8_SetProperty
(
device
,
DIPROP_AUTOCENTER
,
&
prop_dword
.
diph
);
todo_wine
ok
(
hr
==
DI_OK
,
"SetProperty DIPROP_AUTOCENTER returned %#x
\n
"
,
hr
);
hr
=
IDirectInputDevice8_Acquire
(
device
);
hr
=
IDirectInputDevice8_Acquire
(
device
);
ok
(
hr
==
DI_OK
,
"Acquire returned: %#x
\n
"
,
hr
);
ok
(
hr
==
DI_OK
,
"Acquire returned: %#x
\n
"
,
hr
);
prop_dword
.
diph
.
dwHow
=
DIPH_DEVICE
;
prop_dword
.
diph
.
dwObj
=
0
;
prop_dword
.
dwData
=
0xdeadbeef
;
prop_dword
.
dwData
=
0xdeadbeef
;
hr
=
IDirectInputDevice8_SetProperty
(
device
,
DIPROP_FFGAIN
,
&
prop_dword
.
diph
);
hr
=
IDirectInputDevice8_SetProperty
(
device
,
DIPROP_FFGAIN
,
&
prop_dword
.
diph
);
todo_wine
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