You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
834 B
26 lines
834 B
#import <Foundation/Foundation.h>
|
|
|
|
#import "RNGHTouchEventType.h"
|
|
|
|
#define MAX_POINTERS_COUNT 12
|
|
|
|
@class RNGestureHandler;
|
|
|
|
@interface RNGestureHandlerPointerTracker : NSObject
|
|
|
|
@property (nonatomic) RNGHTouchEventType eventType;
|
|
@property (nonatomic) NSArray<NSDictionary *> *changedPointersData;
|
|
@property (nonatomic) NSArray<NSDictionary *> *allPointersData;
|
|
@property (nonatomic) int trackedPointersCount;
|
|
|
|
- (id)initWithGestureHandler:(RNGestureHandler *)gestureHandler;
|
|
|
|
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;
|
|
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;
|
|
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;
|
|
- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;
|
|
- (void)reset;
|
|
- (void)cancelPointers;
|
|
|
|
@end
|