implement SonarPen

This commit is contained in:
2018-08-15 02:20:23 +02:00
parent e4e7719f83
commit a37ea5309b
9 changed files with 151 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
//
// WTSonarPenTouchesHandler.h
//
// Created by Water Lou on 3/7/15.
// Copyright (c) 2015 First Water Tech Ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WTSonarPenTouchesHandler : NSObject
- (void)handleTouches:(UIEvent * _Nullable)event
view:(UIView * _Nonnull)view
penDown:(BOOL)penDownStatus;
// check if pen is down
- (BOOL)isPenDown;
// check if touch with large size touch
- (BOOL)isPalmTouchedBySize;
// get pen location if pen is down
- (CGPoint)penLocation;
// touch object that detect as pen
@property(readonly, nullable) UITouch *penTouch;
- (NSInteger)numberOfTouches;
@end