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
45b8d865
Commit
45b8d865
authored
Feb 02, 2007
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Feb 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Don't reset user specified range in SetDataFormat. With tests.
parent
b8b03b54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
joystick_linux.c
dlls/dinput/joystick_linux.c
+0
-2
joystick.c
dlls/dinput/tests/joystick.c
+8
-0
No files found.
dlls/dinput/joystick_linux.c
View file @
45b8d865
...
...
@@ -664,8 +664,6 @@ static HRESULT WINAPI JoystickAImpl_SetDataFormat(
for
(
i
=
0
;
i
<
This
->
base
.
data_format
.
wine_df
->
dwNumObjs
;
i
++
)
{
This
->
props
[
i
].
lMin
=
0
;
This
->
props
[
i
].
lMax
=
0xffff
;
This
->
props
[
i
].
lDeadZone
=
1000
;
This
->
props
[
i
].
lSaturation
=
0
;
}
...
...
dlls/dinput/tests/joystick.c
View file @
45b8d865
...
...
@@ -258,6 +258,14 @@ static BOOL CALLBACK EnumJoysticks(
ok
(
caps
.
dwButtons
==
info
.
button
,
"Number of enumerated buttons doesn't match capabilities
\n
"
);
ok
(
caps
.
dwPOVs
==
info
.
pov
,
"Number of enumerated POVs doesn't match capabilities
\n
"
);
/* Set format and check limits again */
hr
=
IDirectInputDevice_SetDataFormat
(
pJoystick
,
&
c_dfDIJoystick2
);
ok
(
hr
==
DI_OK
,
"IDirectInputDevice_SetDataFormat() failed: %s
\n
"
,
DXGetErrorString8
(
hr
));
info
.
lMin
=
-
2000
;
info
.
lMax
=
+
2000
;
hr
=
IDirectInputDevice_EnumObjects
(
pJoystick
,
EnumAxes
,
(
VOID
*
)
&
info
,
DIDFT_ALL
);
ok
(
hr
==
DI_OK
,
"IDirectInputDevice_EnumObjects() failed: %s
\n
"
,
DXGetErrorString8
(
hr
));
hr
=
IDirectInputDevice_GetDeviceInfo
(
pJoystick
,
0
);
ok
(
hr
==
E_POINTER
,
"IDirectInputDevice_GetDeviceInfo() "
"should have returned E_POINTER, returned: %s
\n
"
,
...
...
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