implement SonarPen
This commit is contained in:
28
libs/libSonarPen/include/WTSonarPenTouchesHandler.h
Executable file
28
libs/libSonarPen/include/WTSonarPenTouchesHandler.h
Executable 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
|
||||
Reference in New Issue
Block a user