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:
Ivo Ivanov 2022-07-27 10:29:08 +03:00 committed by Alexandre Julliard
parent 50a2e2f0e9
commit eccfcc8011
2 changed files with 2 additions and 0 deletions

View file

@ -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 );

View file

@ -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 );