How do i detect a swipe up or swipe left using new input system for Touch Screen

i tried to use as below.

if(context.ReadValue<float>()>1)
   // swipe right
else
   //swipe left

My Action Type is a Value and Control Type is Touch.
In the Binding i used Delta/X [TouchScreen]

The behavior i noticed whether i swipe left or right it always returns positive and hence enters only the if part.
Can someone show me an example of how to do this using new inputsystem

It is currently not implemented. But it is high priority on unity list. You need to do it yourself currently.

Do we have an estimated release date for the swipe mechanics?

for what i can see we have to get the start and end position and calculate ourselves the direction of swipe.

Not implemented yet? 2 years passed…

1 Like

even not yet

3

1 Like

soon 4)

5