GestureManager Class |
Namespace: TouchScript
public sealed class GestureManager : MonoBehaviour
The GestureManager type exposes the following members.
Name | Description | |
---|---|---|
GestureManager | Initializes a new instance of the GestureManager class |
Why IList instead of Pointer in pointer events?
Right now touchesBegan/touchesMoved/touchesEnded methods in Gesture class accept IList as their argument which seems to overcomplicate a lot of stuff and just calling touchBegan(TouchPoint) would be easier.
The later approach was tried in 7.0 and reverted in 8.0 since it introduced a really hard to fix gesture priority issue. If with lists a gesture knows all touches changed during current frame, individual touchMoved calls have to be buffered till the end of frame. But there's no way to execute gesture recognition logic at the end of frame in the right hierarchical order. This concern resulted in the following issue: https://github.com/TouchScript/TouchScript/issues/203