Input System fire only if we move mouse

Hi!

I am trying to convert my old lagacy camera orbit system to the new input-system.

When we orbit a camera, we have some situatons:
-only clicked without movement
-click more movement

In the input-system I created an action Moving(value=Vector2)> One Modifier > Modifier(left button) and Binding(position).

Its a nice config because if I just listener the “performed” It will only fire if we have movement.
But the problem is that its is not true. Because even though I don’t moving the mouse, one event is fired every time I click. If a click and move, many events are fired. Is correctly, I am moving.

But if I click and not move would be perfect to me to not fire this single event.
Are there something in Actions that I can do to solve it?

The next step will be create a variable and to some if to text the current position with the last.

This is my code to get the event:

 public void OnMoving(InputAction.CallbackContext context)
 {       
     if (context.performed)
     {
         print("performed");
     }      
 }

well how did you configure “moving” ?

INPUTASSET InputAction{"m_Name":"Moving","m_Type":0,"m_ExpectedControlType":"Vector2","m_Id":"48f82f4f-1fc5-495f-a097-15b829fc8f46","m_Processors":"","m_Interactions":"","m_SingletonActionBindings":[],"m_Flags":1}bindingData{"m_Name":"One Modifier","m_Id":"dfdaee98-efb8-4f16-a0f2-c9f002afc4a9","m_Path":"OneModifier","m_Interactions":"","m_Processors":"","m_Groups":"","m_Action":"Moving","m_Flags":4}+++{"m_Name":"modifier","m_Id":"29cc5547-231d-45b5-8171-f7bcb1b0c488","m_Path":"<Mouse>/leftButton","m_Interactions":"","m_Processors":"","m_Groups":"","m_Action":"Moving","m_Flags":8}+++{"m_Name":"binding","m_Id":"b7c2760d-5a34-4e94-9807-43da1e20bc54","m_Path":"<Mouse>/position","m_Interactions":"","m_Processors":"","m_Groups":"","m_Action":"Moving","m_Flags":8}+++

I guess that you can copy this text and past in one Actions to see yourself.

But here some pictures too:



image
image

Change Vector2 to Delta and Position in Mouse to delta.

I created one touch to move and is working fine.
But I also created another action to Pinch gesture.
So, the idea is to use one to move and two fingers to pinch.
The problem is that when I am pinching the screen, the action Move is also been called.
Is it possible to avoid it only setting the actions?
I know that like in the “lagacy input”, we can just implement ifs and elses inside the performed callback to test if we have one or two fingers.
But its seens that I am thinking in “lagacy” way and not the how things works in the new input system.

What do you think?

Thank you!