XCodeiPhoneOS/Demos/src/keyboard.c
branchgsoc2008_iphone
changeset 2423 74d25e48d54d
parent 2412 a01958cd513d
--- 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();