r2mods/ilspy_dump/ror2_csproj/RoR2.GamepadVibration/DefaultGamepadVibrationCont...

13 lines
370 B
C#

using HG;
namespace RoR2.GamepadVibration;
public class DefaultGamepadVibrationController : GamepadVibrationController
{
protected override void CalculateMotorValues(in VibrationContext vibrationContext, float[] motorValues)
{
float value = vibrationContext.CalcCamDisplacementMagnitude();
ArrayUtils.SetRange(motorValues, in value, 0, motorValues.Length);
}
}