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
17ce835e
Commit
17ce835e
authored
Jul 22, 2022
by
Arkadiusz Hiler
Committed by
Alexandre Julliard
Jul 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Set correct object names for dials and sliders.
parent
6901f3cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
joystick_hid.c
dlls/dinput/joystick_hid.c
+2
-0
joystick8.c
dlls/dinput/tests/joystick8.c
+3
-3
No files found.
dlls/dinput/joystick_hid.c
View file @
17ce835e
...
...
@@ -354,6 +354,8 @@ static const WCHAR *object_usage_to_string( DIDEVICEOBJECTINSTANCEW *instance )
case
MAKELONG
(
HID_USAGE_GENERIC_X
,
HID_USAGE_PAGE_GENERIC
):
return
L"X Axis"
;
case
MAKELONG
(
HID_USAGE_GENERIC_Y
,
HID_USAGE_PAGE_GENERIC
):
return
L"Y Axis"
;
case
MAKELONG
(
HID_USAGE_GENERIC_Z
,
HID_USAGE_PAGE_GENERIC
):
return
L"Z Axis"
;
case
MAKELONG
(
HID_USAGE_GENERIC_SLIDER
,
HID_USAGE_PAGE_GENERIC
):
return
L"Slider"
;
case
MAKELONG
(
HID_USAGE_GENERIC_DIAL
,
HID_USAGE_PAGE_GENERIC
):
return
L"Dial"
;
case
MAKELONG
(
PID_USAGE_ATTACK_LEVEL
,
HID_USAGE_PAGE_PID
):
return
L"Attack Level"
;
case
MAKELONG
(
PID_USAGE_ATTACK_TIME
,
HID_USAGE_PAGE_PID
):
return
L"Attack Time"
;
...
...
dlls/dinput/tests/joystick8.c
View file @
17ce835e
...
...
@@ -2992,8 +2992,8 @@ static void test_many_axes_joystick(void)
{
0
},
{
0
},
{
0
},
{
.
name
=
TRUE
},
{.
name
=
TRUE
,
.
guid
=
TRUE
},
{
0
},
{.
guid
=
TRUE
},
{.
flags
=
TRUE
},
{.
flags
=
TRUE
},
{.
flags
=
TRUE
},
...
...
@@ -3120,7 +3120,7 @@ static void test_many_axes_joystick(void)
check_member
(
objinst
,
expect_objects
[
8
],
"%#lx"
,
dwOfs
);
check_member
(
objinst
,
expect_objects
[
8
],
"%#lx"
,
dwType
);
check_member
(
objinst
,
expect_objects
[
8
],
"%#lx"
,
dwFlags
);
if
(
!
localized
)
todo_wine
check_member_wstr
(
objinst
,
expect_objects
[
8
],
tszName
);
if
(
!
localized
)
check_member_wstr
(
objinst
,
expect_objects
[
8
],
tszName
);
check_member
(
objinst
,
expect_objects
[
8
],
"%lu"
,
dwFFMaxForce
);
check_member
(
objinst
,
expect_objects
[
8
],
"%lu"
,
dwFFForceResolution
);
check_member
(
objinst
,
expect_objects
[
8
],
"%u"
,
wCollectionNumber
);
...
...
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