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)onTouchesBegan:(nonnull NSDictionary<NSNumber *, BNBTouch *> *)tocuhes;

    Swift

    func onTouchesBegan(_ tocuhes: [NSNumber : BNBTouch])
  • Undocumented

    Declaration

    Objective-C

    - (void)onTouchesMoved:(nonnull NSDictionary<NSNumber *, BNBTouch *> *)tocuhes;

    Swift

    func onTouchesMoved(_ tocuhes: [NSNumber : BNBTouch])
  • Undocumented

    Declaration

    Objective-C

    - (void)onTouchesEnded:(nonnull NSDictionary<NSNumber *, BNBTouch *> *)tocuhes;

    Swift

    func onTouchesEnded(_ tocuhes: [NSNumber : BNBTouch])
  • Undocumented

    Declaration

    Objective-C

    - (void)onTouchesCancelled:(nonnull NSDictionary<NSNumber *, BNBTouch *> *)tocuhes;

    Swift

    func onTouchesCancelled(_ tocuhes: [NSNumber : BNBTouch])
  • 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)onDoubleTapGesture:(nonnull BNBTouch *)pos;

    Swift

    func onDoubleTapGesture(_ pos: BNBTouch)
  • Undocumented

    Declaration

    Objective-C

    - (void)onLongTapGesture:(nonnull BNBTouch *)pos;

    Swift

    func onLongTapGesture(_ pos: BNBTouch)
  • Undocumented

    Declaration

    Objective-C

    - (void)onGestureEnded:(nonnull NSString *)id;

    Swift

    func onGestureEnded(_ id: String)