coord reset for extremely high pointer velocity, core implementation

This commit is contained in:
True Zhuanjia committed 2024-07-14 16:41:26 +08:00
1 parent 01718282ff
commit 31b3df08cc
4 files changed
+47 -37

No files matched your search

+6 -1
View File
@@ -12,10 +12,15 @@
NS_ASSUME_NONNULL_BEGIN
@interface NativeTouchPointer : NSObject
@property (nonatomic, assign) bool boundaryReached;
+ (void)initContextWithView:(StreamView *)view andNativeTouchHandler:(NativeTouchHandler*)handler;
+ (void)initContextWithView:(StreamView *)view;
+ (void)setPointerVelocityDivider:(CGFloat)dividerLocation;
+ (void)setPointerVelocityFactor:(CGFloat)velocityFactor;
+ (NativeTouchPointer* )getPointerObjFromDict:(UITouch*)touch;
- (bool)doesReachBoundary;
+ (void)populatePointerObjIntoDict:(UITouch*)touch;
+ (void)removePointerObjFromDict:(UITouch*)touch;
+ (void)updatePointerObjInDict:(UITouch *)touch;