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
f2fa2448
Commit
f2fa2448
authored
Aug 15, 2016
by
Bruno Jesus
Committed by
Alexandre Julliard
Aug 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Enumerate all joystick devices during the test.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
62876f3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
joystick.c
dlls/winmm/tests/joystick.c
+3
-2
No files found.
dlls/winmm/tests/joystick.c
View file @
f2fa2448
...
...
@@ -82,7 +82,9 @@ static void test_api(void)
ret
=
joyGetDevCapsA
(
JOYSTICKID1
+
i
,
&
jc
,
sizeof
(
jc
));
if
(
ret
==
JOYERR_NOERROR
)
{
joyid
=
JOYSTICKID1
+
i
;
if
(
joyid
==
-
1
)
/* Cache the first found joystick to run advanced tests below */
joyid
=
JOYSTICKID1
+
i
;
trace
(
"Joystick[%d] - name: '%s', axes: %d, buttons: %d, period range: %d - %d
\n
"
,
JOYSTICKID1
+
i
,
jc
.
szPname
,
jc
.
wNumAxes
,
jc
.
wNumButtons
,
jc
.
wPeriodMin
,
jc
.
wPeriodMax
);
ret
=
joyGetDevCapsW
(
JOYSTICKID1
+
i
,
&
jcw
,
sizeof
(
jcw
));
...
...
@@ -93,7 +95,6 @@ static void test_api(void)
ok
(
jc
.
wNumButtons
==
jcw
.
wNumButtons
,
"Expected %d == %d
\n
"
,
jc
.
wNumButtons
,
jcw
.
wNumButtons
);
}
else
win98
++
;
break
;
}
else
{
...
...
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