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
46980e79
Commit
46980e79
authored
Feb 09, 2021
by
Brendan Shanks
Committed by
Alexandre Julliard
Feb 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Fix Xbox One controller D-pad on Mac.
Signed-off-by:
Brendan Shanks
<
bshanks@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d355fa79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
joystick_osx.c
dlls/dinput/joystick_osx.c
+2
-2
No files found.
dlls/dinput/joystick_osx.c
View file @
46980e79
...
...
@@ -840,10 +840,10 @@ static void poll_osx_device_state(LPDIRECTINPUTDEVICE8A iface)
return
;
val
=
IOHIDValueGetIntegerValue
(
valueRef
);
oldVal
=
device
->
generic
.
js
.
rgdwPOV
[
pov_idx
];
if
(
val
>=
8
)
if
(
(
val
>
device
->
generic
.
props
[
idx
].
lDevMax
)
||
(
val
<
device
->
generic
.
props
[
idx
].
lDevMin
)
)
newVal
=
-
1
;
else
newVal
=
val
*
4500
;
newVal
=
(
val
-
device
->
generic
.
props
[
idx
].
lDevMin
)
*
4500
;
device
->
generic
.
js
.
rgdwPOV
[
pov_idx
]
=
newVal
;
TRACE
(
"valueRef %s val %d oldVal %d newVal %d
\n
"
,
debugstr_cf
(
valueRef
),
val
,
oldVal
,
newVal
);
if
(
oldVal
!=
newVal
)
...
...
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