src/video/uikit/SDL_uikitview.m
changeset 6044 35448a5ea044
parent 6010 508aa078acc0
child 6054 effedf4d675c
equal deleted inserted replaced
6043:46d78e48ae8b 6044:35448a5ea044
    16      appreciated but is not required.
    16      appreciated but is not required.
    17   2. Altered source versions must be plainly marked as such, and must not be
    17   2. Altered source versions must be plainly marked as such, and must not be
    18      misrepresented as being the original software.
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    20 */
       
    21 #include "SDL_config.h"
       
    22 
       
    23 #if SDL_VIDEO_DRIVER_UIKIT
    21 
    24 
    22 #import "SDL_uikitview.h"
    25 #import "SDL_uikitview.h"
    23 
    26 
    24 #include "../../events/SDL_keyboard_c.h"
    27 #include "../../events/SDL_keyboard_c.h"
    25 #include "../../events/SDL_mouse_c.h"
    28 #include "../../events/SDL_mouse_c.h"
    26 #include "../../events/SDL_touch_c.h"
    29 #include "../../events/SDL_touch_c.h"
    27 
    30 
    28 #if SDL_IPHONE_KEYBOARD
    31 #if SDL_IPHONE_KEYBOARD
    29 #import "keyinfotable.h"
    32 #import "keyinfotable.h"
    30 #import "SDL_uikitappdelegate.h"
    33 #import "SDL_uikitappdelegate.h"
       
    34 #import "SDL_uikitkeyboard.h"
    31 #import "SDL_uikitwindow.h"
    35 #import "SDL_uikitwindow.h"
    32 #endif
    36 #endif
    33 
    37 
    34 @implementation SDL_uikitview
    38 @implementation SDL_uikitview
    35 
    39 
   309 @end
   313 @end
   310 
   314 
   311 /* iPhone keyboard addition functions */
   315 /* iPhone keyboard addition functions */
   312 #if SDL_IPHONE_KEYBOARD
   316 #if SDL_IPHONE_KEYBOARD
   313 
   317 
   314 SDL_uikitview * getWindowView(SDL_Window * window)
   318 static SDL_uikitview * getWindowView(SDL_Window * window)
   315 {
   319 {
   316     if (window == NULL) {
   320     if (window == NULL) {
   317         SDL_SetError("Window does not exist");
   321         SDL_SetError("Window does not exist");
   318         return nil;
   322         return nil;
   319     }
   323     }
   403     return -1;
   407     return -1;
   404 }
   408 }
   405 
   409 
   406 #endif /* SDL_IPHONE_KEYBOARD */
   410 #endif /* SDL_IPHONE_KEYBOARD */
   407 
   411 
       
   412 #endif /* SDL_VIDEO_DRIVER_UIKIT */
       
   413 
   408 /* vi: set ts=4 sw=4 expandtab: */
   414 /* vi: set ts=4 sw=4 expandtab: */