I need non linear gamepad response, like a normal game so I’m doing this:
namespace UnityEngine.InputSystem.Processors
{
[Scripting.Preserve]
#if UNITY_EDITOR
[UnityEditor.InitializeOnLoad]
#endif
public class CurveVector2Processor : InputProcessor<Vector2>
{
[Tooltip("Curve scale of X,Y")] public AnimationCurve x, y;
public override Vector2 Process(Vector2 value, InputControl control) { return new Vector2(x.Evaluate(value.x), y.Evaluate(value.y)); }
public override string ToString() { return $"CurveVector2"; }
#if UNITY_EDITOR
static CurveVector2Processor() { Initialize(); }
#endif
[RuntimeInitializeOnLoadMethod]
static void Initialize() { InputSystem.RegisterProcessor<CurveVector2Processor>(); }
}
}
but it’s bombing
ArgumentException: Don’t know how to convert PrimitiveValue to ‘Object’

so yeah this “thing” doesn’t even support animcurves…