BNBInputManager
Objective-C
@interface BNBInputManager : NSObject
- (void)onTouchesBegan:(nonnull NSDictionary<NSNumber *, BNBTouch *> *)tocuhes;
- (void)onTouchesMoved:(nonnull NSDictionary<NSNumber *, BNBTouch *> *)tocuhes;
- (void)onTouchesEnded:(nonnull NSDictionary<NSNumber *, BNBTouch *> *)tocuhes;
- (void)onTouchesCancelled:(nonnull NSDictionary<NSNumber *, BNBTouch *> *)tocuhes;
- (void)onRotationGesture:(float)angle;
- (void)onScaleGesture:(float)scale;
- (void)onSwipeGesture:(float)dirX
dirY:(float)dirY;
- (void)onDoubleTapGesture:(nonnull BNBTouch *)pos;
- (void)onLongTapGesture:(nonnull BNBTouch *)pos;
- (void)onGestureEnded:(nonnull NSString *)id;
@end
Swift
class BNBInputManager : NSObject
Undocumented
-
Undocumented
Declaration
Objective-C
- (void)onRotationGesture:(float)angle;
Swift
func onRotationGesture(_ angle: Float)
-
Undocumented
Declaration
Objective-C
- (void)onScaleGesture:(float)scale;
Swift
func onScaleGesture(_ scale: Float)
-
Undocumented
Declaration
Objective-C
- (void)onSwipeGesture:(float)dirX dirY:(float)dirY;
Swift
func onSwipeGesture(_ dirX: Float, dirY: Float)
-
Undocumented
Declaration
Objective-C
- (void)onGestureEnded:(nonnull NSString *)id;
Swift
func onGestureEnded(_ id: String)