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
e2e10027
Commit
e2e10027
authored
Jan 21, 2020
by
Andrew Eikum
Committed by
Alexandre Julliard
Jan 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Add missing ASPECT flags for c_dfDIJoystick2.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
af2f4194
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
data_formats.c
dlls/dinput/data_formats.c
+32
-32
No files found.
dlls/dinput/data_formats.c
View file @
e2e10027
...
...
@@ -82,14 +82,14 @@ const DIDATAFORMAT c_dfDIJoystick = {
};
static
const
DIOBJECTDATAFORMAT
dfDIJoystick2
[]
=
{
{
&
GUID_XAxis
,
DIJOFS_X
,
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_YAxis
,
DIJOFS_Y
,
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_ZAxis
,
DIJOFS_Z
,
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_RxAxis
,
DIJOFS_RX
,
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_RyAxis
,
DIJOFS_RY
,
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_RzAxis
,
DIJOFS_RZ
,
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
0
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
1
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_XAxis
,
DIJOFS_X
,
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTPOSITION
},
{
&
GUID_YAxis
,
DIJOFS_Y
,
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTPOSITION
},
{
&
GUID_ZAxis
,
DIJOFS_Z
,
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTPOSITION
},
{
&
GUID_RxAxis
,
DIJOFS_RX
,
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTPOSITION
},
{
&
GUID_RyAxis
,
DIJOFS_RY
,
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTPOSITION
},
{
&
GUID_RzAxis
,
DIJOFS_RZ
,
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTPOSITION
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
0
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTPOSITION
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
1
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTPOSITION
},
{
&
GUID_POV
,
DIJOFS_POV
(
0
),
DIDFT_OPTIONAL
|
DIDFT_POV
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_POV
,
DIJOFS_POV
(
1
),
DIDFT_OPTIONAL
|
DIDFT_POV
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_POV
,
DIJOFS_POV
(
2
),
DIDFT_OPTIONAL
|
DIDFT_POV
|
DIDFT_ANYINSTANCE
,
0
},
...
...
@@ -222,33 +222,33 @@ static const DIOBJECTDATAFORMAT dfDIJoystick2[] = {
{
NULL
,
DIJOFS_BUTTON
(
125
),
DIDFT_OPTIONAL
|
DIDFT_BUTTON
|
DIDFT_ANYINSTANCE
,
0
},
{
NULL
,
DIJOFS_BUTTON
(
126
),
DIDFT_OPTIONAL
|
DIDFT_BUTTON
|
DIDFT_ANYINSTANCE
,
0
},
{
NULL
,
DIJOFS_BUTTON
(
127
),
DIDFT_OPTIONAL
|
DIDFT_BUTTON
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_XAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lVX
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_YAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lVY
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_ZAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lVZ
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_RxAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lVRx
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_RyAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lVRy
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_RzAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lVRz
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_XAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lVX
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTVELOCITY
},
{
&
GUID_YAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lVY
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTVELOCITY
},
{
&
GUID_ZAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lVZ
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTVELOCITY
},
{
&
GUID_RxAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lVRx
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTVELOCITY
},
{
&
GUID_RyAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lVRy
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTVELOCITY
},
{
&
GUID_RzAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lVRz
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTVELOCITY
},
/* note: dwOfs value matches Windows */
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
0
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
1
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_XAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lAX
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_YAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lAY
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_ZAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lAZ
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_RxAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lARx
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_RyAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lARy
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_RzAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lARz
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
0
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTVELOCITY
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
1
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTVELOCITY
},
{
&
GUID_XAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lAX
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTACCEL
},
{
&
GUID_YAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lAY
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTACCEL
},
{
&
GUID_ZAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lAZ
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTACCEL
},
{
&
GUID_RxAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lARx
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTACCEL
},
{
&
GUID_RyAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lARy
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTACCEL
},
{
&
GUID_RzAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lARz
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTACCEL
},
/* note: dwOfs value matches Windows */
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
0
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
1
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_XAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lFX
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_YAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lFY
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_ZAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lFZ
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_RxAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lFRx
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_RyAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lFRy
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_RzAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lFRz
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
0
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTACCEL
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
1
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTACCEL
},
{
&
GUID_XAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lFX
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTFORCE
},
{
&
GUID_YAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lFY
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTFORCE
},
{
&
GUID_ZAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lFZ
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTFORCE
},
{
&
GUID_RxAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lFRx
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTFORCE
},
{
&
GUID_RyAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lFRy
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTFORCE
},
{
&
GUID_RzAxis
,
FIELD_OFFSET
(
DIJOYSTATE2
,
lFRz
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTFORCE
},
/* note: dwOfs value matches Windows */
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
0
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
1
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
0
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTFORCE
},
{
&
GUID_Slider
,
DIJOFS_SLIDER
(
1
),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
DIDOI_ASPECTFORCE
},
};
const
DIDATAFORMAT
c_dfDIJoystick2
=
{
...
...
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