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

13 lines
370 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
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);
}
}