Skip to main content

IGameInputDevice::SetForceFeedbackMotorGain

Applies a global attenuation factor to all loaded effects on a motor.

Syntax

Parameters

motorIndex   _In_
Type: uint32_t
Index of the motor to be changed. masterGain   _In_
Type: float
Global attenuation factor to all loaded effects on the motor between 0.0 and 1.0.

Return value

None.

Remarks

This method applies a global attenuation factor to all loaded effects on the motor. The masterGain pointer accepts values between 0.0 and 1.0. This is used by the application’s force feedback strength settings. For more information, see Overview of GameInput.

Requirements

Header: GameInput.h GameInput
IGameInputDevice

Version History

Last modified on August 4, 2026