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
b50d1fa3
Commit
b50d1fa3
authored
Jun 13, 2017
by
Bruno Jesus
Committed by
Alexandre Julliard
Jun 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Limit axes while remaping broken devices.
Signed-off-by:
Bruno Jesus
<
bjesus@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2cd8eb39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
joystick_linux.c
dlls/dinput/joystick_linux.c
+6
-2
No files found.
dlls/dinput/joystick_linux.c
View file @
b50d1fa3
...
...
@@ -253,10 +253,14 @@ static INT find_joystick_devices(void)
/* If no axes were configured but there are axes assume a 1-to-1 (wii controller) */
if
(
joydev
.
axis_count
&&
!
found_axes
)
{
int
axes_limit
=
min
(
joydev
.
axis_count
,
8
);
/* generic driver limit */
ERR
(
"Incoherent joystick data, advertised %d axes, detected 0. Assuming 1-to-1.
\n
"
,
joydev
.
axis_count
);
for
(
j
=
0
;
j
<
joydev
.
axis_coun
t
;
j
++
)
joydev
.
axis_count
);
for
(
j
=
0
;
j
<
axes_limi
t
;
j
++
)
joydev
.
dev_axes_map
[
j
]
=
j
;
joydev
.
axis_count
=
axes_limit
;
}
}
...
...
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