1 #import <Foundation/Foundation.h> 2 3 #import "RNGHTouchEventType.h" 4 5 #define MAX_POINTERS_COUNT 12 6 7 @class RNGestureHandler; 8 9 @interface RNGestureHandlerPointerTracker : NSObject 10 11 @property (nonatomic) RNGHTouchEventType eventType; 12 @property (nonatomic) NSArray<NSDictionary *> *changedPointersData; 13 @property (nonatomic) NSArray<NSDictionary *> *allPointersData; 14 @property (nonatomic) int trackedPointersCount; 15 16 - (id)initWithGestureHandler:(RNGestureHandler *)gestureHandler; 17 18 - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event; 19 - (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event; 20 - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event; 21 - (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event; 22 - (void)reset; 23 - (void)cancelPointers; 24 25 @end 26