src/video/uikit/SDL_uikitview.h
changeset 5520 09b500e0656d
parent 5262 b530ef003506
child 5527 9a03d2300486
     1.1 --- a/src/video/uikit/SDL_uikitview.h	Mon Mar 28 15:18:01 2011 -0400
     1.2 +++ b/src/video/uikit/SDL_uikitview.h	Mon Mar 28 23:21:22 2011 -0400
     1.3 @@ -30,6 +30,16 @@
     1.4  #define MAX_SIMULTANEOUS_TOUCHES 5
     1.5  #endif
     1.6  
     1.7 +@interface SDL_uikitviewcontroller : UIViewController {
     1.8 +@private
     1.9 +    SDL_Window *window;
    1.10 +}
    1.11 +- (id)initWithSDLWindow:(SDL_Window *)_window;
    1.12 +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
    1.13 +- (void)loadView;
    1.14 +- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration;
    1.15 +@end
    1.16 +
    1.17  /* *INDENT-OFF* */
    1.18  #if SDL_IPHONE_KEYBOARD
    1.19  @interface SDL_uikitview : UIView<UITextFieldDelegate> {
    1.20 @@ -48,7 +58,9 @@
    1.21      UITextField *textField;
    1.22      BOOL keyboardVisible;
    1.23  #endif    
    1.24 -    
    1.25 +
    1.26 +@public
    1.27 +    SDL_uikitviewcontroller *viewcontroller;
    1.28  }
    1.29  - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    1.30  - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;