NativeTouchHandler improvement, general coding improvements.

This commit is contained in:
True Zhuanjia
2024-06-20 22:52:38 +08:00
parent ee4eb35fe3
commit f09c7be18d
5 changed files with 70 additions and 81 deletions
+3 -5
View File
@@ -12,10 +12,8 @@ NS_ASSUME_NONNULL_BEGIN
@interface NativeTouchPointer : NSObject
+ (void)initContextWith:(StreamView *)view;
+ (void)populatePointerId:(UITouch*)touch;
+ (void)removePointerId:(UITouch*)touch;
+ (uint32_t) retrievePointerIdFromDict:(UITouch*)touch;
+ (void)initContextWithView:(StreamView *)view;
+ (void)setPointerVelocityDivider:(CGFloat)dividerLocation;
+ (void)setPointerVelocityFactor:(CGFloat)velocityFactor;
+ (void)populatePointerObjIntoDict:(UITouch*)touch;
@@ -24,7 +22,7 @@ NS_ASSUME_NONNULL_BEGIN
+ (CGPoint)selectCoordsFor:(UITouch *)touch;
- (instancetype)initWith:(UITouch *)touch;
- (instancetype)initWithTouch:(UITouch *)touch;
@end