Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added conditional compilation line #ifdef __IPHONE_OS__ to prevent ot…

…her platforms from including iPhone specific line of code that is used to toggle keyboard visibility.
  • Loading branch information
Holmes Futrell committed Aug 15, 2008
1 parent 8559b3c commit b8a49fb302465d4862136466a2918da8971f5b8e
Showing with 5 additions and 1 deletion.
  1. +5 −1 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();

0 comments on commit b8a49fb

Please sign in to comment.