From b8a49fb302465d4862136466a2918da8971f5b8e Mon Sep 17 00:00:00 2001 From: Holmes Futrell Date: Fri, 15 Aug 2008 00:38:49 +0000 Subject: [PATCH] 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. --- XCodeiPhoneOS/Demos/src/keyboard.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/XCodeiPhoneOS/Demos/src/keyboard.c b/XCodeiPhoneOS/Demos/src/keyboard.c index b68c2cb15..37749f94d 100644 --- a/XCodeiPhoneOS/Demos/src/keyboard.c +++ b/XCodeiPhoneOS/Demos/src/keyboard.c @@ -261,10 +261,14 @@ int main(int argc, char *argv[]) { /* 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();