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
f1beea4f
Commit
f1beea4f
authored
Mar 30, 2011
by
Vincent Pelletier
Committed by
Alexandre Julliard
Mar 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Effect length can actually be 0.
This fixes force feedback devices slamming for 10ms at full strength, as attack is an absolute value, not a factor of effect level.
parent
1f8f7cf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+5
-6
No files found.
dlls/dinput/effect_linuxinput.c
View file @
f1beea4f
...
...
@@ -606,13 +606,12 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
else
env
=
NULL
;
if
(
peff
->
lpEnvelope
==
NULL
)
{
/* if this type had an envelope, reset it
* note that length can never be zero, so we set it to something minuscule */
/* if this type had an envelope, reset it */
if
(
env
)
{
env
->
attack_length
=
0
x10
;
env
->
attack_level
=
0
x7FFF
;
env
->
fade_length
=
0
x10
;
env
->
fade_level
=
0
x7FFF
;
env
->
attack_length
=
0
;
env
->
attack_level
=
0
;
env
->
fade_length
=
0
;
env
->
fade_level
=
0
;
}
}
else
{
/* did we get passed an envelope for a type that doesn't even have one? */
...
...
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