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
4413356d
Commit
4413356d
authored
Apr 04, 2023
by
Florian Will
Committed by
Alexandre Julliard
Apr 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Add guidType test for collection objects.
parent
3385cda1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
joystick8.c
dlls/dinput/tests/joystick8.c
+29
-1
No files found.
dlls/dinput/tests/joystick8.c
View file @
4413356d
...
...
@@ -1450,6 +1450,11 @@ static void test_simple_joystick( DWORD version )
REPORT_COUNT
(
1
,
4
),
INPUT
(
1
,
Data
|
Var
|
Abs
),
END_COLLECTION
,
USAGE_PAGE
(
1
,
HID_USAGE_PAGE_GENERIC
),
USAGE
(
1
,
HID_USAGE_GENERIC_RZ
),
COLLECTION
(
1
,
Physical
),
END_COLLECTION
,
END_COLLECTION
,
};
C_ASSERT
(
sizeof
(
report_desc
)
<
MAX_HID_DESCRIPTOR_LEN
);
...
...
@@ -1679,6 +1684,14 @@ static void test_simple_joystick( DWORD version )
.
wUsagePage
=
HID_USAGE_PAGE_GENERIC
,
.
wUsage
=
HID_USAGE_GENERIC_JOYSTICK
,
},
{
.
dwSize
=
sizeof
(
DIDEVICEOBJECTINSTANCEW
),
.
guidType
=
GUID_Unknown
,
.
dwType
=
DIDFT_COLLECTION
|
DIDFT_NODATA
|
DIDFT_MAKEINSTANCE
(
2
),
.
tszName
=
L"Collection 2 - Z Rotation"
,
.
wUsagePage
=
HID_USAGE_PAGE_GENERIC
,
.
wUsage
=
HID_USAGE_GENERIC_RZ
,
},
};
const
DIDEVICEOBJECTINSTANCEW
expect_objects_5
[]
=
{
...
...
@@ -1764,6 +1777,21 @@ static void test_simple_joystick( DWORD version )
.
wReportId
=
1
,
},
};
struct
check_object_todo
todo_objects
[
ARRAY_SIZE
(
expect_objects
)]
=
{
{
0
},
{
0
},
{
0
},
{
0
},
{
0
},
{
0
},
{
0
},
{
0
},
{
0
},
{
0
},
{
0
},
{
.
guid
=
TRUE
},
};
struct
check_object_todo
todo_objects_5
[
ARRAY_SIZE
(
expect_objects_5
)]
=
{
{.
guid
=
TRUE
,
.
type
=
TRUE
,
.
flags
=
TRUE
,
.
usage
=
TRUE
,
.
usage_page
=
TRUE
,
.
name
=
TRUE
},
...
...
@@ -1780,7 +1808,7 @@ static void test_simple_joystick( DWORD version )
.
version
=
version
,
.
expect_count
=
version
<
0x700
?
ARRAY_SIZE
(
expect_objects_5
)
:
ARRAY_SIZE
(
expect_objects
),
.
expect_objs
=
version
<
0x700
?
expect_objects_5
:
expect_objects
,
.
todo_objs
=
version
<
0x700
?
todo_objects_5
:
NULL
,
.
todo_objs
=
version
<
0x700
?
todo_objects_5
:
todo_objects
,
.
todo_extra
=
version
<
0x700
,
};
...
...
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