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
62d40eb0
Commit
62d40eb0
authored
Mar 18, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Allow setting DIPROP_AUTOCENTER when exclusively acquired.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d9910197
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
device.c
dlls/dinput/device.c
+2
-0
force_feedback.c
dlls/dinput/tests/force_feedback.c
+3
-0
No files found.
dlls/dinput/device.c
View file @
62d40eb0
...
...
@@ -1009,6 +1009,8 @@ static HRESULT check_property( struct dinput_device *impl, const GUID *guid, con
switch
(
LOWORD
(
guid
))
{
case
(
DWORD_PTR
)
DIPROP_AUTOCENTER
:
if
(
impl
->
status
==
STATUS_ACQUIRED
&&
!
is_exclusively_acquired
(
impl
))
return
DIERR_ACQUIRED
;
break
;
case
(
DWORD_PTR
)
DIPROP_AXISMODE
:
case
(
DWORD_PTR
)
DIPROP_BUFFERSIZE
:
case
(
DWORD_PTR
)
DIPROP_PHYSICALRANGE
:
...
...
dlls/dinput/tests/force_feedback.c
View file @
62d40eb0
...
...
@@ -2924,6 +2924,9 @@ static BOOL test_force_feedback_joystick( DWORD version )
ok
(
hr
==
DI_OK
,
"Unacquire returned: %#lx
\n
"
,
hr
);
hr
=
IDirectInputDevice8_SetCooperativeLevel
(
device
,
hwnd
,
DISCL_BACKGROUND
|
DISCL_EXCLUSIVE
);
ok
(
hr
==
DI_OK
,
"SetCooperativeLevel returned: %#lx
\n
"
,
hr
);
prop_dword
.
dwData
=
DIPROPAUTOCENTER_ON
;
hr
=
IDirectInputDevice8_SetProperty
(
device
,
DIPROP_AUTOCENTER
,
&
prop_dword
.
diph
);
ok
(
hr
==
DI_OK
,
"SetProperty DIPROP_AUTOCENTER returned %#lx
\n
"
,
hr
);
set_hid_expect
(
file
,
expect_acquire
,
sizeof
(
expect_acquire
)
);
hr
=
IDirectInputDevice8_Acquire
(
device
);
...
...
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