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
83172ecc
Commit
83172ecc
authored
Aug 15, 2009
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Aug 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Fix evdev POV mapping.
parent
0932f4a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+4
-2
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
83172ecc
...
...
@@ -425,9 +425,11 @@ static JoystickImpl *alloc_device(REFGUID rguid, const void *jvt, IDirectInputIm
test_bit
(
newDevice
->
joydev
->
absbits
,
ABS_HAT0Y
+
i
*
2
))
{
newDevice
->
generic
.
device_axis_count
+=
2
;
newDevice
->
generic
.
props
[
idx
].
lDevMin
=
newDevice
->
joydev
->
axes
[
ABS_HAT0X
+
i
*
2
].
minimum
;
newDevice
->
generic
.
props
[
idx
].
lDevMin
=
newDevice
->
joydev
->
axes
[
ABS_HAT0X
+
i
*
2
].
minimum
;
newDevice
->
generic
.
props
[
idx
].
lDevMax
=
newDevice
->
joydev
->
axes
[
ABS_HAT0X
+
i
*
2
].
maximum
;
newDevice
->
dev_axes_to_di
[
ABS_HAT0X
+
i
*
2
]
=
idx
;
newDevice
->
generic
.
props
[
idx
].
lDevMax
=
newDevice
->
joydev
->
axes
[
ABS_HAT0Y
+
i
*
2
].
maximum
;
newDevice
->
generic
.
props
[
idx
+
1
].
lDevMin
=
newDevice
->
joydev
->
axes
[
ABS_HAT0Y
+
i
*
2
].
minimum
;
newDevice
->
generic
.
props
[
idx
+
1
].
lDevMax
=
newDevice
->
joydev
->
axes
[
ABS_HAT0Y
+
i
*
2
].
maximum
;
newDevice
->
dev_axes_to_di
[
ABS_HAT0Y
+
i
*
2
]
=
idx
+
1
;
default_axis_map
[
idx
]
=
default_axis_map
[
idx
+
1
]
=
WINE_JOYSTICK_MAX_AXES
+
i
;
...
...
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