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
e3d24386
Commit
e3d24386
authored
May 29, 2012
by
Lucas Zawacki
Committed by
Alexandre Julliard
May 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Added a test for DIPROP_JOYSTICKID.
parent
2cd3b908
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
joystick.c
dlls/dinput/tests/joystick.c
+11
-0
No files found.
dlls/dinput/tests/joystick.c
View file @
e3d24386
...
...
@@ -180,6 +180,7 @@ static BOOL CALLBACK EnumJoysticks(
ULONG
ref
;
DIDEVICEINSTANCE
inst
;
DIDEVICEINSTANCE_DX3
inst3
;
DIPROPDWORD
dipw
;
HWND
hWnd
=
get_hwnd
();
char
oldstate
[
248
],
curstate
[
248
];
...
...
@@ -205,6 +206,16 @@ static BOOL CALLBACK EnumJoysticks(
trace
(
"---- %s ----
\n
"
,
lpddi
->
tszProductName
);
/* Test for joystick ID property */
ZeroMemory
(
&
dipw
,
sizeof
(
dipw
));
dipw
.
diph
.
dwSize
=
sizeof
(
DIPROPDWORD
);
dipw
.
diph
.
dwHeaderSize
=
sizeof
(
DIPROPHEADER
);
dipw
.
diph
.
dwObj
=
0
;
dipw
.
diph
.
dwHow
=
DIPH_DEVICE
;
hr
=
IDirectInputDevice_GetProperty
(
pJoystick
,
DIPROP_JOYSTICKID
,
&
dipw
.
diph
);
ok
(
SUCCEEDED
(
hr
),
"IDirectInputDevice_GetProperty() for DIPROP_JOYSTICKID failed
\n
"
);
hr
=
IDirectInputDevice_SetDataFormat
(
pJoystick
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectInputDevice_SetDataFormat() should have returned "
"E_POINTER, returned: %08x
\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