cocoaTouch/SDLOverrides/SDL_uikitview.h
changeset 2725 89908847b155
parent 2724 601158aaa201
child 2738 bfccb2ec4334
equal deleted inserted replaced
2724:601158aaa201 2725:89908847b155
    32 #define MAX_SIMULTANEOUS_TOUCHES 5
    32 #define MAX_SIMULTANEOUS_TOUCHES 5
    33 #else
    33 #else
    34 #define MAX_SIMULTANEOUS_TOUCHES 1
    34 #define MAX_SIMULTANEOUS_TOUCHES 1
    35 #endif
    35 #endif
    36 
    36 
    37 // constants for telling which input has been received
       
    38 #define kMinimumPinchDelta	100
       
    39 #define kMinimumGestureLength	10
       
    40 #define kMaximumVariance	3
       
    41 
       
    42 /* *INDENT-OFF* */
    37 /* *INDENT-OFF* */
    43 #if SDL_IPHONE_KEYBOARD
    38 #if SDL_IPHONE_KEYBOARD
    44 @interface SDL_uikitview : UIView<UITextFieldDelegate> {
    39 @interface SDL_uikitview : UIView<UITextFieldDelegate> {
    45 #else
    40 #else
    46 @interface SDL_uikitview : UIView {
    41 @interface SDL_uikitview : UIView {
    47 #endif
    42 #endif
    48 	SDL_Mouse mice[MAX_SIMULTANEOUS_TOUCHES];
    43 	SDL_Mouse mice[MAX_SIMULTANEOUS_TOUCHES];
    49 	CGFloat initialDistance;
    44 	CGFloat initialDistanceForPinching;
    50 	CGPoint gestureStartPoint;
    45 	CGPoint gestureStartPoint;
    51 
    46 
    52 #if SDL_IPHONE_KEYBOARD
    47 #if SDL_IPHONE_KEYBOARD
    53 	UITextField *textField;
    48 	UITextField *textField;
    54 	BOOL keyboardVisible;
    49 	BOOL keyboardVisible;