Mercurial > sdl-ios-xcode
comparison src/video/uikit/SDL_uikitopengles.m @ 4490:06c7423f8c60
Updated iPhone keyboard code (which builds and runs on the iPad and iPhone simulator now)
Updated iPhone demos (which build and run again)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 07 Jul 2010 18:58:51 -0700 |
parents | 6dc6a2bdd55e |
children | 7b7da52e8775 |
comparison
equal
deleted
inserted
replaced
4489:2bb1bfeee9e2 | 4490:06c7423f8c60 |
---|---|
24 #include "SDL_uikitopenglview.h" | 24 #include "SDL_uikitopenglview.h" |
25 #include "SDL_uikitappdelegate.h" | 25 #include "SDL_uikitappdelegate.h" |
26 #include "SDL_uikitwindow.h" | 26 #include "SDL_uikitwindow.h" |
27 #include "jumphack.h" | 27 #include "jumphack.h" |
28 #include "SDL_sysvideo.h" | 28 #include "SDL_sysvideo.h" |
29 #include "../../events/SDL_keyboard_c.h" | |
30 #include "../../events/SDL_mouse_c.h" | |
29 #include "SDL_loadso.h" | 31 #include "SDL_loadso.h" |
30 #include <dlfcn.h> | 32 #include <dlfcn.h> |
31 | 33 |
32 static int UIKit_GL_Initialize(_THIS); | 34 static int UIKit_GL_Initialize(_THIS); |
33 | 35 |
126 return NULL; | 128 return NULL; |
127 } | 129 } |
128 | 130 |
129 /* Make this window the current mouse focus for touch input */ | 131 /* Make this window the current mouse focus for touch input */ |
130 SDL_SetMouseFocus(window); | 132 SDL_SetMouseFocus(window); |
133 SDL_SetKeyboardFocus(window); | |
131 | 134 |
132 return view; | 135 return view; |
133 } | 136 } |
134 | 137 |
135 void UIKit_GL_DeleteContext(_THIS, SDL_GLContext context) | 138 void UIKit_GL_DeleteContext(_THIS, SDL_GLContext context) |