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
45a19b0c
Commit
45a19b0c
authored
Mar 20, 2013
by
Lucas Zawacki
Committed by
Alexandre Julliard
Mar 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Initialize all axis (from 0 to ABS_MAX) with -1.
parent
6eeb000c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+3
-2
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
45a19b0c
...
...
@@ -445,9 +445,10 @@ static JoystickImpl *alloc_device(REFGUID rguid, IDirectInputImpl *dinput, unsig
newDevice
->
generic
.
base
.
crit
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": JoystickImpl*->base.crit"
);
/* Count number of available axes - supported Axis & POVs */
for
(
i
=
0
;
i
<
WINE_JOYSTICK_MAX_AXES
;
i
++
)
for
(
i
=
0
;
i
<
ABS_MAX
;
i
++
)
{
if
(
test_bit
(
newDevice
->
joydev
->
absbits
,
i
))
if
(
i
<
WINE_JOYSTICK_MAX_AXES
&&
test_bit
(
newDevice
->
joydev
->
absbits
,
i
))
{
newDevice
->
generic
.
device_axis_count
++
;
newDevice
->
dev_axes_to_di
[
i
]
=
idx
;
...
...
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