UE4 Swiping left right in 2d

i dont know how to implement 2d swiping left or right on finger input can someone help me?

The base idea is to get the finger location on the screen when touch pressed (X,Y coordinates), and then get the finger location on touch release. The compare those coordinates.
So if the end location on the X axis is higher than the start location, then the player swiped right. And if it’s lower, then the player swiped left.

Take a look at this video: Swipe Gesture Controls - #20 Creating A MOBILE Endless Runner Unreal Engine 4 - YouTube