Commit eccfcc80 authored by Ivo Ivanov's avatar Ivo Ivanov Committed by Alexandre Julliard

windows.gaming.input: Add gain of 1.0 to the initialization params of…

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.
parent 50a2e2f0
...@@ -107,6 +107,7 @@ static HRESULT WINAPI effect_SetParameters( IConstantForceEffect *iface, Vector3 ...@@ -107,6 +107,7 @@ static HRESULT WINAPI effect_SetParameters( IConstantForceEffect *iface, Vector3
.direction = direction, .direction = direction,
.duration = duration, .duration = duration,
.repeat_count = 1, .repeat_count = 1,
.gain = 1.,
}, },
}; };
struct constant_effect *impl = impl_from_IConstantForceEffect( iface ); struct constant_effect *impl = impl_from_IConstantForceEffect( iface );
......
...@@ -108,6 +108,7 @@ static HRESULT WINAPI effect_SetParameters( IRampForceEffect *iface, Vector3 sta ...@@ -108,6 +108,7 @@ static HRESULT WINAPI effect_SetParameters( IRampForceEffect *iface, Vector3 sta
.end_vector = end_vector, .end_vector = end_vector,
.duration = duration, .duration = duration,
.repeat_count = 1, .repeat_count = 1,
.gain = 1.,
}, },
}; };
struct ramp_effect *impl = impl_from_IRampForceEffect( iface ); struct ramp_effect *impl = impl_from_IRampForceEffect( iface );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment