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;
/** @param key Values are listed in https://www.glfw.org/docs/3.3/group__keys.html */
- (void)onKeyDown:(int32_t)key;
- (void)onKeyUp:(int32_t)key;
@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) -
Declaration
Objective-C
- (void)onKeyDown:(int32_t)key;Swift
func onKeyDown(_ key: Int32)Parameters
keyValues are listed in https://www.glfw.org/docs/3.3/group__keys.html
-
Undocumented
Declaration
Objective-C
- (void)onKeyUp:(int32_t)key;Swift
func onKeyUp(_ key: Int32)
BNBInputManager Class Reference