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
5d51d8a2
Commit
5d51d8a2
authored
Jun 01, 2019
by
Tim Schumacher
Committed by
Alexandre Julliard
Jun 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/linuxinput: Remap wheel axes to X, Y, and Z.
Signed-off-by:
Tim Schumacher
<
timschumi@gmx.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eb69fa7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+6
-2
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
5d51d8a2
...
...
@@ -502,14 +502,18 @@ static JoystickImpl *alloc_device(REFGUID rguid, IDirectInputImpl *dinput, unsig
/* Count number of available axes - supported Axis & POVs */
for
(
i
=
0
;
i
<
ABS_MAX
;
i
++
)
{
if
(
i
<
WINE_JOYSTICK_MAX_AXES
&&
if
(
idx
<
WINE_JOYSTICK_MAX_AXES
&&
i
<
ABS_HAT0X
&&
test_bit
(
newDevice
->
joydev
->
absbits
,
i
))
{
newDevice
->
generic
.
device_axis_count
++
;
newDevice
->
dev_axes_to_di
[
i
]
=
idx
;
newDevice
->
generic
.
props
[
idx
].
lDevMin
=
newDevice
->
joydev
->
axes
[
i
].
minimum
;
newDevice
->
generic
.
props
[
idx
].
lDevMax
=
newDevice
->
joydev
->
axes
[
i
].
maximum
;
default_axis_map
[
idx
]
=
i
;
if
(
i
>=
8
&&
i
<=
10
)
/* If it's a wheel axis... */
default_axis_map
[
idx
]
=
i
-
8
;
/* ... remap to X/Y/Z */
else
default_axis_map
[
idx
]
=
i
;
idx
++
;
}
else
...
...
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