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
af2f4194
Commit
af2f4194
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: Fix V/A/FSlider dwOfs values in c_dfDIJoystick2.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6cb3d0fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
data_formats.c
dlls/dinput/data_formats.c
+9
-6
No files found.
dlls/dinput/data_formats.c
View file @
af2f4194
...
...
@@ -228,24 +228,27 @@ static const DIOBJECTDATAFORMAT dfDIJoystick2[] = {
{
&
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_Slider
,
FIELD_OFFSET
(
DIJOYSTATE2
,
rglVSlider
[
0
]),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_Slider
,
FIELD_OFFSET
(
DIJOYSTATE2
,
rglVSlider
[
1
]),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
/* 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
,
FIELD_OFFSET
(
DIJOYSTATE2
,
rglASlider
[
0
]),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_Slider
,
FIELD_OFFSET
(
DIJOYSTATE2
,
rglASlider
[
1
]),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
/* 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
,
FIELD_OFFSET
(
DIJOYSTATE2
,
rglFSlider
[
0
]),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
{
&
GUID_Slider
,
FIELD_OFFSET
(
DIJOYSTATE2
,
rglFSlider
[
1
]),
DIDFT_OPTIONAL
|
DIDFT_AXIS
|
DIDFT_ANYINSTANCE
,
0
},
/* 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
},
};
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