How to find out if the finger moved and changed direction, that is, moved in front and then started back
1 answer
deltaPosition - returns a vector that indicates where the finger is going, if it is always (say) x and y in the plus and suddenly goes to minus, then this means that the finger has changed directions
- Depending on the device, the value of the
deltaPositionparameterdeltaPositionnot be stable when moving. Therefore, for good, you need to filter incoming data and calculate the direction of movement in the code - KingPeas
|