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
382ed33b
Commit
382ed33b
authored
May 08, 2008
by
Vitaliy Margolen
Committed by
Alexandre Julliard
May 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Default value for unassigned POVs should be -1.
parent
b92d1c7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
device.c
dlls/dinput/device.c
+5
-2
joystick.c
dlls/dinput/tests/joystick.c
+7
-0
No files found.
dlls/dinput/device.c
View file @
382ed33b
...
...
@@ -452,9 +452,12 @@ HRESULT create_DataFormat(LPCDIDATAFORMAT asked_format, DataFormat *format)
dt
[
index
].
size
=
sizeof
(
DWORD
);
dt
[
index
].
offset_in
=
-
1
;
dt
[
index
].
offset_out
=
asked_format
->
rgodf
[
j
].
dwOfs
;
dt
[
index
].
value
=
0
;
if
(
asked_format
->
rgodf
[
j
].
dwType
&
DIDFT_POV
)
dt
[
index
].
value
=
-
1
;
else
dt
[
index
].
value
=
0
;
index
++
;
same
=
0
;
}
}
...
...
dlls/dinput/tests/joystick.c
View file @
382ed33b
...
...
@@ -324,6 +324,13 @@ static BOOL CALLBACK EnumJoysticks(
ok
(
hr
==
S_FALSE
,
"IDirectInputDevice_Acquire() should have returned S_FALSE, got: %s
\n
"
,
DXGetErrorString8
(
hr
));
if
(
info
.
pov
<
4
)
{
hr
=
IDirectInputDevice_GetDeviceState
(
pJoystick
,
sizeof
(
DIJOYSTATE2
),
&
js
);
ok
(
hr
==
DI_OK
,
"IDirectInputDevice_GetDeviceState() failed: %s
\n
"
,
DXGetErrorString8
(
hr
));
ok
(
js
.
rgdwPOV
[
3
]
==
-
1
,
"Default for unassigned POV should be -1 not: %d
\n
"
,
js
.
rgdwPOV
[
3
]);
}
if
(
winetest_interactive
)
{
trace
(
"You have 30 seconds to test all axes, sliders, POVs and buttons
\n
"
);
count
=
300
;
...
...
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