How to reproduce the standard Input.GetAxis("Horizontal") in the New Input System?

I configured my new Input System, but the values are fixed, meaning when I press A I sharply get an output of (-1) and (1) if i press D like Input.GetAxisRaw(“Horizontal”), but i want it to gradually go to 1 and -1 and back to 0 like Input.GetAxis(“Horizontal”), how to do that ?

https://docs.unity3d.com/Packages/com.unity.inputsystem@1.8/api/UnityEngine.InputSystem.Composites.Vector2Composite.Mode.html

Select the Control Type as Vector 2.

Select the 1D Axis item in the Actions panel and on the right panel change the Mode to Analog.

I did, but it doesn`t work :(, it still works like GetAxisRaw(“Horizontal”)

9902391--1430445--333.png 9902391--1430448--444.png 9902391--1430451--555.png
in Update():
9902391--1430457--666.png 9902391--1430460--777.png

_movementX is float.

9902400--1430463--888.png

You are dealing with inputs. The input is a button. The button is either on or off. There is no gradual interpolation taking place here.

If you want interpolation, collect the inputs and blend a local value toward the target input value over time in your script.

Like, I have to do all calculations for interpolation by myself?

Yes, welcome to programming.

:face_with_spiral_eyes: