Inconsistent values

Hi! I’m new to this new input system.

I’m currently stuck with an issue where the Vector2 value I send, is different from what I receive.

In my OnScreenControl class, I detect an OnDrag event and call SendValueToControl

SendValueToControl(eventData.delta);

Let’s say the delta in this case is a vector2 (7, 0);

Then I read the value in another class via

var input = playerInput.Player.Look.ReadValue<Vector2>();

And the value I receive is a vector2 (1,0);

The values I receive are somehow normalized, I double checked my Input Actions and no processors to normalize the value have been added.

I absolutely need a non-normalized value here, any idea why this is happening?

1 Like

What is the control you’ve bound the OnScreenControl to? Be aware that the gamepad sticks will implicitly do deadzoning and normalization.

1 Like

Yeah, didn’t know that before. I’ve bound it to Right Stick and switching to other controls fixed the issue