Determining a diagonal gesture with MultitouchInputMode.GESTURE ?
How do I determine a diagonal gesture with MultitouchInputMode.GESTURE ?
How do I determine a diagonal gesture with MultitouchInputMode.GESTURE ?
Hi,
You calculate it based on the direction of both the offsetX and offsetY.
Let's say you're listening to the TransformGestureEvent.GESTURE_SWIPE. offsetX indictates left/right with -1 for left and 1 for right. offsetY indicates up/down with 1 for down and -1 for up. So if offsetX is 1 and offsetY is 1, you just went down to the right.
It all depends on what you're trying to detect. Check out the documentation for the TransformGestureEvent and see if one of those events give you the values you want.
If you need more detail than that, you'll have to roll your own "gesture" by switching to tracking touch events and calculating it that way.
iBrent
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.