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
25e9e91c
Commit
25e9e91c
authored
Jun 05, 2020
by
Torge Matthies
Committed by
Alexandre Julliard
Jun 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joy.cpl: Fix pulsing buttons in joystick button state display.
Signed-off-by:
Torge Matthies
<
openglfreak@googlemail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ed1a4087
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
main.c
dlls/joy.cpl/main.c
+1
-6
No files found.
dlls/joy.cpl/main.c
View file @
25e9e91c
...
...
@@ -404,8 +404,7 @@ static DWORD WINAPI input_thread(void *param)
/* Indicate pressed buttons */
for
(
i
=
0
;
i
<
data
->
joysticks
[
data
->
chosen_joystick
].
num_buttons
;
i
++
)
if
(
state
.
rgbButtons
[
i
])
SendMessageW
(
data
->
graphics
.
buttons
[
i
],
BM_SETSTATE
,
TRUE
,
0
);
SendMessageW
(
data
->
graphics
.
buttons
[
i
],
BM_SETSTATE
,
!!
state
.
rgbButtons
[
i
],
0
);
/* Indicate axis positions, axes showing are hardcoded for now */
axes_pos
[
0
][
0
]
=
state
.
lX
;
...
...
@@ -438,10 +437,6 @@ static DWORD WINAPI input_thread(void *param)
}
Sleep
(
TEST_POLL_TIME
);
/* Reset button state */
for
(
i
=
0
;
i
<
data
->
joysticks
[
data
->
chosen_joystick
].
num_buttons
;
i
++
)
SendMessageW
(
data
->
graphics
.
buttons
[
i
],
BM_SETSTATE
,
FALSE
,
0
);
}
return
0
;
...
...
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