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