Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8c279bb8
Commit
8c279bb8
authored
Sep 10, 2009
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Sep 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Fix POV for programs that use buffered events.
parent
fd743472
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
joystick_linux.c
dlls/dinput/joystick_linux.c
+2
-1
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+2
-1
No files found.
dlls/dinput/joystick_linux.c
View file @
8c279bb8
...
...
@@ -582,7 +582,8 @@ static void joy_polldev(JoystickGenericImpl *This_in) {
int
number
=
This
->
generic
.
axis_map
[
jse
.
number
];
/* wine format object index */
if
(
number
<
0
)
return
;
inst_id
=
DIDFT_MAKEINSTANCE
(
number
)
|
(
number
<
8
?
DIDFT_ABSAXIS
:
DIDFT_POV
);
inst_id
=
number
<
8
?
DIDFT_MAKEINSTANCE
(
number
)
|
DIDFT_ABSAXIS
:
DIDFT_MAKEINSTANCE
(
number
-
8
)
|
DIDFT_POV
;
value
=
joystick_map_axis
(
&
This
->
generic
.
props
[
id_to_object
(
This
->
generic
.
base
.
data_format
.
wine_df
,
inst_id
)],
jse
.
value
);
TRACE
(
"changing axis %d => %d
\n
"
,
jse
.
number
,
number
);
...
...
dlls/dinput/joystick_linuxinput.c
View file @
8c279bb8
...
...
@@ -779,7 +779,8 @@ static void joy_polldev(JoystickGenericImpl *iface)
axis
=
This
->
generic
.
axis_map
[
axis
];
if
(
axis
<
0
)
break
;
inst_id
=
DIDFT_MAKEINSTANCE
(
axis
)
|
(
axis
<
8
?
DIDFT_ABSAXIS
:
DIDFT_POV
);
inst_id
=
axis
<
8
?
DIDFT_MAKEINSTANCE
(
axis
)
|
DIDFT_ABSAXIS
:
DIDFT_MAKEINSTANCE
(
axis
-
8
)
|
DIDFT_POV
;
value
=
joystick_map_axis
(
&
This
->
generic
.
props
[
id_to_object
(
This
->
generic
.
base
.
data_format
.
wine_df
,
inst_id
)],
ie
.
value
);
switch
(
axis
)
{
...
...
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