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
ff8debd2
Commit
ff8debd2
authored
Apr 04, 2006
by
Pavel Semerad
Committed by
Alexandre Julliard
Apr 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Fixed joystick with POV and JoystickAImpl_SetProperty-proprange.
parent
2136f327
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
joystick_linux.c
dlls/dinput/joystick_linux.c
+16
-16
No files found.
dlls/dinput/joystick_linux.c
View file @
ff8debd2
...
...
@@ -862,24 +862,24 @@ static int offset_to_object(JoystickImpl *This, int offset)
static
LONG
calculate_pov
(
JoystickImpl
*
This
,
int
index
)
{
if
(
This
->
povs
[
index
].
lX
<
16384
)
{
if
(
This
->
povs
[
index
].
lY
<
16384
)
if
(
This
->
povs
[
index
].
lX
<
-
16384
)
{
if
(
This
->
povs
[
index
].
lY
<
-
16384
)
This
->
js
.
rgdwPOV
[
index
]
=
31500
;
else
if
(
This
->
povs
[
index
].
lY
>
49150
)
else
if
(
This
->
povs
[
index
].
lY
>
16384
)
This
->
js
.
rgdwPOV
[
index
]
=
22500
;
else
This
->
js
.
rgdwPOV
[
index
]
=
27000
;
}
else
if
(
This
->
povs
[
index
].
lX
>
49150
)
{
if
(
This
->
povs
[
index
].
lY
<
16384
)
}
else
if
(
This
->
povs
[
index
].
lX
>
16384
)
{
if
(
This
->
povs
[
index
].
lY
<
-
16384
)
This
->
js
.
rgdwPOV
[
index
]
=
4500
;
else
if
(
This
->
povs
[
index
].
lY
>
49150
)
else
if
(
This
->
povs
[
index
].
lY
>
16384
)
This
->
js
.
rgdwPOV
[
index
]
=
13500
;
else
This
->
js
.
rgdwPOV
[
index
]
=
9000
;
}
else
{
if
(
This
->
povs
[
index
].
lY
<
16384
)
if
(
This
->
povs
[
index
].
lY
<
-
16384
)
This
->
js
.
rgdwPOV
[
index
]
=
0
;
else
if
(
This
->
povs
[
index
].
lY
>
49150
)
else
if
(
This
->
povs
[
index
].
lY
>
16384
)
This
->
js
.
rgdwPOV
[
index
]
=
18000
;
else
This
->
js
.
rgdwPOV
[
index
]
=
-
1
;
...
...
@@ -953,30 +953,30 @@ static void joy_polldev(JoystickImpl *This) {
case
8
:
/* FIXME don't go off array */
if
(
This
->
axis_map
[
jse
.
number
+
1
]
==
number
)
This
->
povs
[
0
].
lX
=
value
;
This
->
povs
[
0
].
lX
=
jse
.
value
;
else
if
(
This
->
axis_map
[
jse
.
number
-
1
]
==
number
)
This
->
povs
[
0
].
lY
=
value
;
This
->
povs
[
0
].
lY
=
jse
.
value
;
value
=
calculate_pov
(
This
,
0
);
break
;
case
9
:
if
(
This
->
axis_map
[
jse
.
number
+
1
]
==
number
)
This
->
povs
[
1
].
lX
=
value
;
This
->
povs
[
1
].
lX
=
jse
.
value
;
else
if
(
This
->
axis_map
[
jse
.
number
-
1
]
==
number
)
This
->
povs
[
1
].
lY
=
value
;
This
->
povs
[
1
].
lY
=
jse
.
value
;
value
=
calculate_pov
(
This
,
1
);
break
;
case
10
:
if
(
This
->
axis_map
[
jse
.
number
+
1
]
==
number
)
This
->
povs
[
2
].
lX
=
value
;
This
->
povs
[
2
].
lX
=
jse
.
value
;
else
if
(
This
->
axis_map
[
jse
.
number
-
1
]
==
number
)
This
->
povs
[
2
].
lY
=
value
;
This
->
povs
[
2
].
lY
=
jse
.
value
;
value
=
calculate_pov
(
This
,
2
);
break
;
case
11
:
if
(
This
->
axis_map
[
jse
.
number
+
1
]
==
number
)
This
->
povs
[
3
].
lX
=
value
;
This
->
povs
[
3
].
lX
=
jse
.
value
;
else
if
(
This
->
axis_map
[
jse
.
number
-
1
]
==
number
)
This
->
povs
[
3
].
lY
=
value
;
This
->
povs
[
3
].
lY
=
jse
.
value
;
value
=
calculate_pov
(
This
,
3
);
break
;
}
...
...
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