Mercurial > sdl-ios-xcode
comparison XCodeiPhoneOS/Demos/src/keyboard.c @ 2423:74d25e48d54d gsoc2008_iphone
Added conditional compilation line #ifdef __IPHONE_OS__ to prevent other platforms from including iPhone specific line of code that is used to toggle keyboard visibility.
author | Holmes Futrell <hfutrell@umail.ucsb.edu> |
---|---|
date | Fri, 15 Aug 2008 00:38:49 +0000 |
parents | a01958cd513d |
children |
comparison
equal
deleted
inserted
replaced
2422:2cfb28e8d38d | 2423:74d25e48d54d |
---|---|
259 } | 259 } |
260 /* check if the key was a colon */ | 260 /* check if the key was a colon */ |
261 /* draw our updates to the screen */ | 261 /* draw our updates to the screen */ |
262 SDL_RenderPresent(); | 262 SDL_RenderPresent(); |
263 break; | 263 break; |
264 #ifdef __IPHONEOS__ | |
264 case SDL_MOUSEBUTTONUP: | 265 case SDL_MOUSEBUTTONUP: |
265 /* mouse up toggles keyboard */ | 266 /* mouse up toggles onscreen keyboard visibility |
267 this function is available ONLY on iPhone OS | |
268 */ | |
266 SDL_iPhoneKeyboardToggle(windowID); | 269 SDL_iPhoneKeyboardToggle(windowID); |
267 break; | 270 break; |
271 #endif | |
268 } | 272 } |
269 } | 273 } |
270 cleanup(); | 274 cleanup(); |
271 return 0; | 275 return 0; |
272 } | 276 } |