mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:34:09 +00:00
windows.gaming.input: Add gain of 1.0 to the initialization params of (Constant|Ramp)Effect's SetParameters.
Fixes FH5 not having (or having very subtle) force feedback. Potentially affects most WGI games, since the constant effect is usually the main effect.
This commit is contained in:
parent
50a2e2f0e9
commit
eccfcc8011
|
@ -107,6 +107,7 @@ static HRESULT WINAPI effect_SetParameters( IConstantForceEffect *iface, Vector3
|
|||
.direction = direction,
|
||||
.duration = duration,
|
||||
.repeat_count = 1,
|
||||
.gain = 1.,
|
||||
},
|
||||
};
|
||||
struct constant_effect *impl = impl_from_IConstantForceEffect( iface );
|
||||
|
|
|
@ -108,6 +108,7 @@ static HRESULT WINAPI effect_SetParameters( IRampForceEffect *iface, Vector3 sta
|
|||
.end_vector = end_vector,
|
||||
.duration = duration,
|
||||
.repeat_count = 1,
|
||||
.gain = 1.,
|
||||
},
|
||||
};
|
||||
struct ramp_effect *impl = impl_from_IRampForceEffect( iface );
|
||||
|
|
Loading…
Reference in a new issue