src/video/uikit/SDL_uikitview.h
changeset 5520 09b500e0656d
parent 5262 b530ef003506
child 5527 9a03d2300486
equal deleted inserted replaced
5519:c425e4e8fc75 5520:09b500e0656d
    28 
    28 
    29 #ifndef IPHONE_TOUCH_EFFICIENT_DANGEROUS
    29 #ifndef IPHONE_TOUCH_EFFICIENT_DANGEROUS
    30 #define MAX_SIMULTANEOUS_TOUCHES 5
    30 #define MAX_SIMULTANEOUS_TOUCHES 5
    31 #endif
    31 #endif
    32 
    32 
       
    33 @interface SDL_uikitviewcontroller : UIViewController {
       
    34 @private
       
    35     SDL_Window *window;
       
    36 }
       
    37 - (id)initWithSDLWindow:(SDL_Window *)_window;
       
    38 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
       
    39 - (void)loadView;
       
    40 - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration;
       
    41 @end
       
    42 
    33 /* *INDENT-OFF* */
    43 /* *INDENT-OFF* */
    34 #if SDL_IPHONE_KEYBOARD
    44 #if SDL_IPHONE_KEYBOARD
    35 @interface SDL_uikitview : UIView<UITextFieldDelegate> {
    45 @interface SDL_uikitview : UIView<UITextFieldDelegate> {
    36 #else
    46 #else
    37 @interface SDL_uikitview : UIView {
    47 @interface SDL_uikitview : UIView {
    46 
    56 
    47 #if SDL_IPHONE_KEYBOARD
    57 #if SDL_IPHONE_KEYBOARD
    48     UITextField *textField;
    58     UITextField *textField;
    49     BOOL keyboardVisible;
    59     BOOL keyboardVisible;
    50 #endif    
    60 #endif    
    51     
    61 
       
    62 @public
       
    63     SDL_uikitviewcontroller *viewcontroller;
    52 }
    64 }
    53 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    65 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    54 - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    66 - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    55 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
    67 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
    56 
    68