Mercurial > sdl-ios-xcode
changeset 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 | 2cfb28e8d38d |
children | ecc18fbfdec3 |
files | XCodeiPhoneOS/Demos/src/keyboard.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/XCodeiPhoneOS/Demos/src/keyboard.c Fri Aug 15 00:37:49 2008 +0000 +++ b/XCodeiPhoneOS/Demos/src/keyboard.c Fri Aug 15 00:38:49 2008 +0000 @@ -261,10 +261,14 @@ /* draw our updates to the screen */ SDL_RenderPresent(); break; +#ifdef __IPHONEOS__ case SDL_MOUSEBUTTONUP: - /* mouse up toggles keyboard */ + /* mouse up toggles onscreen keyboard visibility + this function is available ONLY on iPhone OS + */ SDL_iPhoneKeyboardToggle(windowID); break; +#endif } } cleanup();