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. gsoc2008_iphone
authorHolmes Futrell <hfutrell@umail.ucsb.edu>
Fri, 15 Aug 2008 00:38:49 +0000
branchgsoc2008_iphone
changeset 242374d25e48d54d
parent 2422 2cfb28e8d38d
child 2424 ecc18fbfdec3
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
     1.1 --- a/XCodeiPhoneOS/Demos/src/keyboard.c	Fri Aug 15 00:37:49 2008 +0000
     1.2 +++ b/XCodeiPhoneOS/Demos/src/keyboard.c	Fri Aug 15 00:38:49 2008 +0000
     1.3 @@ -261,10 +261,14 @@
     1.4  				/* draw our updates to the screen */
     1.5  				SDL_RenderPresent();
     1.6  				break;
     1.7 +#ifdef __IPHONEOS__
     1.8  			case SDL_MOUSEBUTTONUP:
     1.9 -				/* mouse up toggles keyboard */
    1.10 +				/*	mouse up toggles onscreen keyboard visibility
    1.11 +					this function is available ONLY on iPhone OS
    1.12 +				 */
    1.13  				SDL_iPhoneKeyboardToggle(windowID);
    1.14  				break;
    1.15 +#endif
    1.16  		}
    1.17  	}
    1.18  	cleanup();